Skip to content

Commit

Permalink
Default theme: restore backgrounds to sidebar panels
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 19, 2016
1 parent 9e7fc0e commit edc2fb7
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 8 deletions.
75 changes: 73 additions & 2 deletions data/themes/_initial.cfg
Expand Up @@ -32,7 +32,7 @@
[/main_map_border]
#enddef

#define STATUS_BOX X1 Y1 X2 Y2 ID REF XANCHOR YANCHOR
#define STATUS_BOX_BORDERLESS X1 Y1 X2 Y2 ID REF XANCHOR YANCHOR
[panel]
id={ID}-box-topleft
rect="{X1},{Y1},+5,+5"
Expand Down Expand Up @@ -94,6 +94,77 @@
[/panel]
#enddef

#define STATUS_BOX X1 Y1 X2 Y2 ID REF XANCHOR YANCHOR
[panel]
id={ID}-box-topleft
image=themes/status_box/status_box-border-topleft.png
rect="{X1},{Y1},+3,+3"
xanchor={XANCHOR}
ref={REF}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-top
image=themes/status_box/status_box-border-top.png
rect="+0,=+0,{X2},+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-topright
image=themes/status_box/status_box-border-topright.png
rect="+0,=+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]

[panel]
id={ID}-box-left
image=themes/status_box/status_box-border-left.png
ref={ID}-box-topleft
rect="=+0,+0,+3,{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-center
image=themes/status_box/status_box-background.png
rect="+0,=+0,{X2},{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-right
image=themes/status_box/status_box-border-right.png
rect="+0,=+0,+3,{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]

[panel]
id={ID}-box-botleft
image=themes/status_box/status_box-border-botleft.png
ref={ID}-box-left
rect="=+0,+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-bottom
image=themes/status_box/status_box-border-bottom.png
rect="+0,=+0,{X2},+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-botright
image=themes/status_box/status_box-border-botright.png
rect="+0,=+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
#enddef

#define REMOVE_STATUS_BOX ID
[remove]
id={ID}-box-topleft
Expand Down Expand Up @@ -327,7 +398,7 @@
#enddef

#define COUNTDOWN_THEME
{STATUS_BOX +3 =+0 +90 +15 timeout income-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +90 +15 timeout income-box-topright fixed fixed}
[label]
id=time-icon
#icon=themes/units.png
Expand Down
12 changes: 6 additions & 6 deletions data/themes/default.cfg
Expand Up @@ -102,12 +102,12 @@
xanchor=fixed
yanchor=fixed
[/menu]
{STATUS_BOX +5 =+0 +75 +15 turn actions-menu fixed fixed}
{STATUS_BOX +3 =+0 +75 +15 gold turn-box-topright fixed fixed}
{STATUS_BOX +3 =+0 +70 +15 villages gold-box-topright fixed fixed}
{STATUS_BOX +3 =+0 +65 +15 units villages-box-topright fixed fixed}
{STATUS_BOX +3 =+0 +85 +15 upkeep units-box-topright fixed fixed}
{STATUS_BOX +3 =+0 +85 +15 income upkeep-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +5 =+0 +75 +15 turn actions-menu fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +75 +15 gold turn-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +70 +15 villages gold-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +65 +15 units villages-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +85 +15 upkeep units-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +85 +15 income upkeep-box-topright fixed fixed}
{COUNTDOWN_THEME}
[menu]
is_context_menu=true
Expand Down

0 comments on commit edc2fb7

Please sign in to comment.