Added definition for small-size scroll label

This commit is contained in:
Charles Dang 2016-01-18 07:19:00 +11:00
parent 0135b70272
commit d21235deb5
2 changed files with 15 additions and 8 deletions

View file

@ -107,7 +107,8 @@
{_GUI_DEFINITION "default_tiny" "default, small font size" () TINY () DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})}
{_GUI_DEFINITION "gold_small" "small gold label" () SMALL () TITLE ({GUI__TEXT_VERTICALLY_CENTRED})}
{_GUI_DEFINITION "scroll_label_mono" "fixed width scroll label" monospace DEFAULT () DEFAULT 0}
{_GUI_DEFINITION "scroll_label_mono" "fixed width scroll label" monospace DEFAULT () DEFAULT 0}
{_GUI_DEFINITION "scroll_label_small" "scroll label, small font size" () SMALL () DEFAULT 0}
#undef _GUI_DEFINITION
#undef _GUI_RESOLUTION

View file

@ -3,7 +3,7 @@
### Definition of a scroll label.
###
#define _GUI_RESOLUTION RESOLUTION FONT_SIZE FONT_STYLE FONT_COLOR_ENABLED FONT_COLOR_DISABLED
#define _GUI_RESOLUTION RESOLUTION DEFINITION FONT_SIZE FONT_STYLE FONT_COLOR_ENABLED FONT_COLOR_DISABLED
[resolution]
{RESOLUTION}
@ -41,8 +41,8 @@
[column]
grow_factor = 1
horizontal_grow = "true" # needed ?
vertical_grow = "true" # needed ?
horizontal_grow = "true" # needed ?
vertical_grow = "true" # needed ?
[grid]
id = "_content_grid"
@ -55,7 +55,7 @@
[label]
id = "_label"
definition = "scroll_label"
definition = {DEFINITION}
[/label]
[/column]
@ -96,12 +96,14 @@
[/resolution]
#enddef
#define _GUI_DEFINITION ID DESCRIPTION DEFINITION
[scroll_label_definition]
id = "default"
description = "The default scroll label."
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION
({GUI_NORMAL__RESOLUTION})
({DEFINITION})
({GUI_NORMAL__FONT_SIZE__DEFAULT})
()
({GUI__FONT_COLOR_ENABLED__DEFAULT})
@ -109,6 +111,10 @@
}
[/scroll_label_definition]
#enddef
{_GUI_DEFINITION "default" "The default scroll label." "scroll_label"}
{_GUI_DEFINITION "default_small" "Small font size scroll label" "scroll_label_small"}
#undef _GUI_DEFINITION
#undef _GUI_RESOLUTION