Skip to content

Commit

Permalink
InstallSubChooseApps styling (Fixes #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkashkin committed Dec 3, 2022
1 parent 43b109a commit db02d8e
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Adwaita/resource/menus/steam.menu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ menubar
{
text=""

SkinVersion { text="Adwaita for Steam v0.19" shellcmd="steam://openurl/https://github.com/tkashkin/Adwaita-for-Steam" }
SkinVersion { text="Adwaita for Steam v0.20" shellcmd="steam://openurl/https://github.com/tkashkin/Adwaita-for-Steam" }

Divider {}

Expand Down
123 changes: 123 additions & 0 deletions Adwaita/steam/cached/InstallSubChooseApps.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
InstallSubChooseApps.res
{
styles
{
Label
{
textcolor="window_fg"
font-size=14
}

ComboBox
{
font-size=14
inset="8 0 -6 0"
render_bg {}
render
{
0="fill(x0, y0+12, x1, y1-12, button_bg)"
1="fill(x0+12, y0, x1-12, y0+12, button_bg)"
2="fill(x0+12, y1-12, x1-12, y1, button_bg)"
3="image(x0, y0, x0+12, y0+12, assets/corners/12_w10/tl)"
4="image(x1-12, y0, x1, y0+12, assets/corners/12_w10/tr)"
5="image(x0, y1-12, x0+12, y1, assets/corners/12_w10/bl)"
6="image(x1-12, y1-12, x1, y1, assets/corners/12_w10/br)"
}
}
ComboBox:hover
{
render_bg {}
render
{
0="fill(x0, y0+12, x1, y1-12, button_hover_bg)"
1="fill(x0+12, y0, x1-12, y0+12, button_hover_bg)"
2="fill(x0+12, y1-12, x1-12, y1, button_hover_bg)"
3="image(x0, y0, x0+12, y0+12, assets/corners/12_w15/tl)"
4="image(x1-12, y0, x1, y0+12, assets/corners/12_w15/tr)"
5="image(x0, y1-12, x0+12, y1, assets/corners/12_w15/bl)"
6="image(x1-12, y1-12, x1, y1, assets/corners/12_w15/br)"
}
}
ComboBox:active
{
render_bg {}
render
{
0="fill(x0, y0+12, x1, y1-12, button_hover_bg)"
1="fill(x0+12, y0, x1-12, y0+12, button_hover_bg)"
2="fill(x0+12, y1-12, x1-12, y1, button_hover_bg)"
3="image(x0, y0, x0+12, y0+12, assets/corners/12_w15/tl)"
4="image(x1-12, y0, x1, y0+12, assets/corners/12_w15/tr)"
5="image(x0, y1-12, x0+12, y1, assets/corners/12_w15/bl)"
6="image(x1-12, y1-12, x1, y1, assets/corners/12_w15/br)"
}
}
ComboBoxButton
{
render {}
render_bg
{
0="gradient_horizontal(x0-6, y0, x0+6, y1, window_bg_transparent, window_bg)"
1="fill(x0+6, y0, x1, y1, window_bg)"
}
}

CheckButton
{
image="assets/checkbox/unchecked"
textcolor="button_fg"
font-family=basefont
font-size=15
font-weight=400
font-style=none
render {}
render_bg {}
}
CheckButton:hover
{
image="assets/checkbox/unchecked_hover"
render {}
render_bg {}
}
CheckButton:selected
{
image="assets/checkbox/checked"
render {}
render_bg {}
}
CheckButton:selected:hover
{
image="assets/checkbox/checked_hover"
render {}
render_bg {}
}
CheckButton:disabled
{
image="assets/checkbox/unchecked_disabled"
textcolor="button_disabled_fg"
render {}
render_bg {}
}
CheckButton:selected:disabled
{
image="assets/checkbox/checked_disabled"
render {}
render_bg {}
}
}

layout
{
place { control="Label1" dir=down margin-top=16 margin-left=16 margin-right=16 width=max }

place { control="GameCheckButtonList" dir=down start="Label1" margin-top=8 margin-right=16 width=max height=130 }

place { control="InstallFolderLabel" dir=down start="GameCheckButtonList" margin-top=8 margin-right=16 width=max height=34 }
place { control="InstallFolderCombo" dir=down start="InstallFolderLabel" margin-right=16 width=max height=50 }

place { control="InstallSize,DriveSpace,DownloadTimeLabel" dir=down start="InstallFolderCombo" margin-top=16 width=200 }
place { control="InstallSizeLabel" start="InstallSize" width=max }
place { control="DriveSpaceLabel" start="DriveSpace" width=max }
place { control="DownloadTimeInfo" start="DownloadTimeLabel" width=max }
}
}

0 comments on commit db02d8e

Please sign in to comment.