Skip to content

Commit

Permalink
gui2: tweaked layout of listbox header toggle button definition
Browse files Browse the repository at this point in the history
This lays out the text by a 5 left offset, alleviating the necessary use
of a border in dialogs using this widget, since borders meant that the
colors backgrounds would not be drawn. As such, any use of this widget
should *not* have borders defined.
  • Loading branch information
Vultraz committed Feb 22, 2016
1 parent c08a87a commit 81389f4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions data/gui/default/widget/toggle_button_listbox_header.cfg
Expand Up @@ -6,7 +6,7 @@

#define _GUI_TEXT FONT_SIZE FONT_COLOR
[text]
x = 0
x = 5
y = {GUI__TEXT_VERTICALLY_CENTRED}
w = "(width)"
h = "(text_height)"
Expand All @@ -16,7 +16,7 @@
[/text]
#enddef

#define _GUI_RESOLUTION RESOLUTION WIDTH HEIGHT IMAGE_Y FONT_SIZE
#define _GUI_RESOLUTION RESOLUTION WIDTH HEIGHT FONT_SIZE
[resolution]

{RESOLUTION}
Expand Down Expand Up @@ -93,8 +93,8 @@
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE}) }

[image]
x = "(width - 10)"
y = {IMAGE_Y}
x = "(width - 15)"
y = "(height / 3)"
name = "buttons/sliders/slider_arrow_blue.png~ROTATE(180)"
[/image]
[/draw]
Expand All @@ -107,8 +107,8 @@
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_DISABLED__TITLE}) }

[image]
x = "(width - 10)"
y = {IMAGE_Y}
x = "(width - 15)"
y = "(height / 3)"
name = "buttons/sliders/slider_arrow_blue.png~ROTATE(180)~GS()"
[/image]

Expand All @@ -131,8 +131,8 @@
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE}) }

[image]
x = "(width - 10)"
y = {IMAGE_Y}
x = "(width - 15)"
y = "(height / 3)"
name = "buttons/sliders/slider_arrow_blue.png~ROTATE(180)"
[/image]

Expand Down Expand Up @@ -160,8 +160,8 @@
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE}) }

[image]
x = "(width - 10)"
y = {IMAGE_Y}
x = "(width - 15)"
y = "(height / 3)"
name = "buttons/sliders/slider_arrow_blue.png"
[/image]
[/draw]
Expand All @@ -174,8 +174,8 @@
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_DISABLED__TITLE}) }

[image]
x = "(width - 10)"
y = {IMAGE_Y}
x = "(width - 15)"
y = "(height / 3)"
name = "buttons/sliders/slider_arrow_blue.png~GS()"
[/image]

Expand All @@ -198,8 +198,8 @@
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE}) }

[image]
x = "(width - 10)"
y = {IMAGE_Y}
x = "(width - 15)"
y = "(height / 3)"
name = "buttons/sliders/slider_arrow_blue.png"
[/image]

Expand All @@ -216,7 +216,7 @@
id = "listbox_header"
description = "Checkbox."

{_GUI_RESOLUTION () 30 18 5 ({GUI_NORMAL__FONT_SIZE__SMALL}) }
{_GUI_RESOLUTION () 30 20 ({GUI_NORMAL__FONT_SIZE__SMALL}) }

[/toggle_button_definition]

Expand Down

0 comments on commit 81389f4

Please sign in to comment.