wesnoth/data/gui/themes/default/widgets/scroll_label_default.cfg
Subhraman Sarkar 6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30

125 lines
2.0 KiB
INI

#textdomain wesnoth-lib
###
### Definition of a scroll label.
###
#define _GUI_RESOLUTION RESOLUTION DEFINITION FONT_SIZE FONT_STYLE FONT_COLOR_ENABLED FONT_COLOR_DISABLED
[resolution]
{RESOLUTION}
min_width = 0
min_height = 0
default_width = 0
default_height = 0
max_width = 0
max_height = 0
text_font_size = {FONT_SIZE}
text_font_style = {FONT_STYLE}
[state_enabled]
[draw]
[/draw]
[/state_enabled]
[state_disabled]
[draw]
[/draw]
[/state_disabled]
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_grow = true # needed ?
vertical_grow = true # needed ?
[grid]
id = "_content_grid"
[row]
[column]
border = "right,bottom" # between the text and the scrollbars
border_size = 3 # intentionally smaller than normal
horizontal_grow = true
vertical_grow = true
[label]
id = "_label"
definition = {DEFINITION}
[/label]
[/column]
[/row]
[/grid]
[/column]
[column]
{GUI__VERTICAL_SCROLLBAR_GRID}
[/column]
[/row]
[row]
[column]
{GUI__HORIZONTAL_SCROLLBAR_GRID}
[/column]
[column]
[spacer]
[/spacer]
[/column]
[/row]
[/grid]
[/resolution]
#enddef
#define _GUI_DEFINITION ID DESCRIPTION DEFINITION
[scroll_label_definition]
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION
()
({DEFINITION})
({GUI_FONT_SIZE_DEFAULT})
()
({GUI__FONT_COLOR_ENABLED__DEFAULT})
({GUI__FONT_COLOR_DISABLED__DEFAULT})
}
[/scroll_label_definition]
#enddef
{_GUI_DEFINITION "default" "The default scroll label." "default"}
{_GUI_DEFINITION "default_large" "Large font size scroll label." "default_large"}
{_GUI_DEFINITION "default_small" "Small font size scroll label." "default_small"}
{_GUI_DEFINITION "default_italic" "Small font size scroll label." "default_italic"}
#undef _GUI_DEFINITION
#undef _GUI_RESOLUTION