Sync push
This commit is contained in:
parent
9cfa49d691
commit
d6fc5d3303
2 changed files with 87 additions and 3 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
***Make parsing of vec2 and rect in stylesheet, consistent with other value functions like gradients and animations
|
***Make parsing of vec2 and rect in stylesheet, consistent with other value functions like gradients and animations
|
||||||
***FIX: ToolBar::AddButton not consistent order
|
***FIX: ToolBar::AddButton not consistent order
|
||||||
***FIX: KeyPress crash on TreeView
|
***FIX: KeyPress crash on TreeView
|
||||||
|
***FIX: Animated icons not working in TreeView
|
||||||
Implement cursors in Stylesheet
|
Implement cursors in Stylesheet
|
||||||
FIX: Window getting exponentially bigger when Desktop scale changes
|
FIX: Window getting exponentially bigger when Desktop scale changes
|
||||||
FIX: Refreshing scroll when content extent changes
|
FIX: Refreshing scroll when content extent changes
|
||||||
|
|
@ -35,7 +36,7 @@ Add buttons to scroll tabs in TabPanel
|
||||||
Add Font class, to handle different font attributes
|
Add Font class, to handle different font attributes
|
||||||
Add multi-selection to TreeView
|
Add multi-selection to TreeView
|
||||||
Cache getStringDimensions() call in TabPanel::draw_tabs
|
Cache getStringDimensions() call in TabPanel::draw_tabs
|
||||||
Add gradient to listbox selection
|
Add gradient to TreeView selection
|
||||||
Add gradient to menubar background and selection
|
Add gradient to menubar background and selection
|
||||||
Add cursor stack
|
Add cursor stack
|
||||||
Add MacOS global menu integration
|
Add MacOS global menu integration
|
||||||
|
|
@ -51,10 +52,8 @@ FIX: TreeView last item not clickable even when no horizontal scrollbar present
|
||||||
FIX: Refresh display text in ComboBox when font size changes and also on theme reload
|
FIX: Refresh display text in ComboBox when font size changes and also on theme reload
|
||||||
Add setSelectedMenuItem() function to ComboBox
|
Add setSelectedMenuItem() function to ComboBox
|
||||||
FIX: ContextMenu rendering partly outside the screen when showing it close to the right Window border
|
FIX: ContextMenu rendering partly outside the screen when showing it close to the right Window border
|
||||||
Update theme for visible TreeView lines
|
|
||||||
Add ToolBar::addButton overload that takes a ogfx::Icon wrapper
|
Add ToolBar::addButton overload that takes a ogfx::Icon wrapper
|
||||||
Redesign theme overrides to be more robust
|
Redesign theme overrides to be more robust
|
||||||
FIX: Animated icons not working in TreeView
|
|
||||||
Add modifiers to Event.keyboard path
|
Add modifiers to Event.keyboard path
|
||||||
Check if possible, then change all WindowCore& refs to Window&
|
Check if possible, then change all WindowCore& refs to Window&
|
||||||
|
|
||||||
|
|
|
||||||
85
other/oss description.txt
Normal file
85
other/oss description.txt
Normal file
|
|
@ -0,0 +1,85 @@
|
||||||
|
Value Types:
|
||||||
|
Color:
|
||||||
|
#RRGGBB - Hex representation
|
||||||
|
#RRGGBBAA - Hex representation
|
||||||
|
rgb(r, g, b) - r, g and b are u8 values
|
||||||
|
rgb(r, g, b, a) - r, g, b and a are u8 values
|
||||||
|
color(...) - where ... can be any of the forms above. This form is already kind of deprecated, since it's useless, but supported anyways
|
||||||
|
All of the color representations support .lighten(f32) and .darken(f32) postfixes (This doesn't apply to the outer parenthesis of color(...), only to the raw hex/rgba representations))
|
||||||
|
|
||||||
|
Rect:
|
||||||
|
rect(f32, f32, f32, f32)
|
||||||
|
|
||||||
|
Vec2:
|
||||||
|
vec2(f32, f32)
|
||||||
|
|
||||||
|
Color Gradients:
|
||||||
|
gradienth(color - color - ...) - Where each <color> can be in any of the Color value-types described above
|
||||||
|
gradientv(color - color - ...) - Same as gradienth
|
||||||
|
w_gradienth(color - weight - color - ...) - same as gradienth/gradientv but between every two colors there is an f32 weight, the weights count is always one less than the colors count.
|
||||||
|
w_gradientv(color - weight - color - ...) - Same as w_gradienth
|
||||||
|
|
||||||
|
File:
|
||||||
|
file("file/path/string") - containing string literal of a file path
|
||||||
|
|
||||||
|
Animation:
|
||||||
|
anim(paramName: paramVal, paramName: paramVal, ...) - Where paramNames correspond to arbitrary parameters of the animation, and paramValue can either be an integer, an f32 or a bool
|
||||||
|
|
||||||
|
Integer/Float:
|
||||||
|
numeric literals like 1 or 1.0 for float
|
||||||
|
|
||||||
|
Bool:
|
||||||
|
true/false
|
||||||
|
|
||||||
|
String:
|
||||||
|
"String Literal"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Variables:
|
||||||
|
They are pattern-matched replaces, and are declared outside group selectors, in one of two forms:
|
||||||
|
$var1 = someValue - Where someValue is of a valid value-type
|
||||||
|
const $var2 = someValue - same as above, but non-mutable
|
||||||
|
They can be referenced anywhere a value-type can appear
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Macros:
|
||||||
|
Parametrized function-like macros that expand at parse-time into their body.
|
||||||
|
They are declared as follows:
|
||||||
|
macro someMacro(param1, param2, param3 = someVal) {
|
||||||
|
someProperty = $param1;
|
||||||
|
someProperty2 = $param2;
|
||||||
|
}
|
||||||
|
They can have default values for parameters, and those default values can be of any value-type (including global variables).
|
||||||
|
They can also be inlined, like: macro test(param1, param2 = 4) { someValue = $param1; someOtherValue = $param2; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Group Selectors:
|
||||||
|
They define theming blocks, and they are defined as follows:
|
||||||
|
([@theming_id] name[:qualifier]) {
|
||||||
|
someField = someValue
|
||||||
|
some_macro_call()
|
||||||
|
some_macro_call2(someParam1, someParam2)
|
||||||
|
someField2 = someValue2
|
||||||
|
(innerSelector) {
|
||||||
|
someInnerProperty = someValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
The square brackets are there only to signify optionality, and are not part of the syntax.
|
||||||
|
The body of the theme block is new-line-based, making the block non-inlineable.
|
||||||
|
Macro calls can only appear here, and as full lines in the body.
|
||||||
|
innerSelectors are only defined using a name, and don't support theme_id or qualifier
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
The stylesheet supports \ (backslash) truncated lines
|
||||||
|
Comments are inline and are defined using the % symbol
|
||||||
|
The language is case-insensitive
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in a new issue