Skip to content

Commit

Permalink
Updater and about dialogs (Fixes #63)
Browse files Browse the repository at this point in the history
Small mode: initial support (Fixes #69)
Overlay: fix overlapping buttons in Settings dialog (Fixes #70)
Adjusted headerbar shade color (Fixes #58)
  • Loading branch information
tkashkin committed Oct 30, 2022
1 parent 9bf5900 commit e622958
Show file tree
Hide file tree
Showing 15 changed files with 746 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Adwaita/adw/colors.styles
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ colors.styles
headerbar_fg="255 255 255 255"
headerbar_backdrop="36 36 36 255"
headerbar_backdrop_fg="255 255 255 128"
headerbar_shade="0 0 0 128"
headerbar_shade="0 0 0 96"

view_bg="30 30 30 255"
view_fg="255 255 255 255"
Expand Down
2 changes: 1 addition & 1 deletion Adwaita/public/UseOfflineMode.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ UseOfflineModeChosen.res
{
font-style=none
font-weight=700
textcolor="window_fg"
textcolor="popover_fg"
}
URLLabel:hover
{
Expand Down
367 changes: 367 additions & 0 deletions Adwaita/resource/layout/gamespage_mini.layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,367 @@
gamespage_mini.layout
{
styles
{
MenuBar
{
inset="0 0 0 0"
padding-left=0
padding-right=0
padding-top=0
padding-bottom=0
}

"MenuBar MenuButton"
{
inset="0 0 0 0"
padding="3 0 0 0"
minimum-width=34
minimum-height=34
image="assets/icons/menu_backdrop"
}
"MenuBar MenuButton:framefocus"
{
image="assets/icons/menu"
}
"MenuBar MenuButton:hover"
{
render_bg
{
0="fill(x0+6, y0, x0+28, y0+34, button_hover_bg)"
1="fill(x0, y0+6, x0+6, y0+28, button_hover_bg)"
2="fill(x0+28, y0+6, x0+34, y0+28, button_hover_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w15/tl)"
4="image(x0+28, y0, x0+34, y0+6, assets/corners/6_w15/tr)"
5="image(x0, y0+28, x0+6, y0+34, assets/corners/6_w15/bl)"
6="image(x0+28, y0+28, x0+34, y0+34, assets/corners/6_w15/br)"
}
}
"MenuBar MenuButton:selected"
{
render_bg
{
0="fill(x0+6, y0, x0+28, y0+34, button_active_bg)"
1="fill(x0, y0+6, x0+6, y0+28, button_active_bg)"
2="fill(x0+28, y0+6, x0+34, y0+28, button_active_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w30/tl)"
4="image(x0+28, y0, x0+34, y0+6, assets/corners/6_w30/tr)"
5="image(x0, y0+28, x0+6, y0+34, assets/corners/6_w30/bl)"
6="image(x0+28, y0+28, x0+34, y0+34, assets/corners/6_w30/br)"
}
}

TextEntry:empty
{
inset-left=0
padding-left=8
}
TextEntry
{
inset="0 0 0 0"
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_backdrop)"
0="fill(x0+6, y0, x1-6, y1, button_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w10/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w10/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w10/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w10/br)"
}
}
TextEntry:hover
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_backdrop)"
0="fill(x0+6, y0, x1-6, y1, button_hover_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_hover_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_hover_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w15/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w15/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w15/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w15/br)"
}
}
TextEntry:focus
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_backdrop)"
0="fill(x0+6, y0, x1-6, y1, button_active_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_active_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_active_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w30/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w30/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w30/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w30/br)"
}
}
TextEntry:disabled
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_backdrop)"
0="fill(x0+6, y0, x1-6, y1, button_disabled_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_disabled_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_disabled_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w5/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w5/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w5/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w5/br)"
}
}
TextEntry:framefocus
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_bg)"
0="fill(x0+6, y0, x1-6, y1, button_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w10/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w10/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w10/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w10/br)"
}
}
TextEntry:framefocus:hover
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_bg)"
0="fill(x0+6, y0, x1-6, y1, button_hover_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_hover_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_hover_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w15/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w15/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w15/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w15/br)"
}
}
TextEntry:framefocus:focus
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_bg)"
0="fill(x0+6, y0, x1-6, y1, button_active_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_active_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_active_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w30/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w30/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w30/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w30/br)"
}
}
TextEntry:framefocus:disabled
{
render_bg
{
-1="fill(x0, y0, x1, y1, headerbar_bg)"
0="fill(x0+6, y0, x1-6, y1, button_disabled_bg)"
1="fill(x0, y0+6, x0+6, y1-6, button_disabled_bg)"
2="fill(x1-6, y0+6, x1, y1-6, button_disabled_bg)"
3="image(x0, y0, x0+6, y0+6, assets/corners/6_w5/tl)"
4="image(x1-6, y0, x1, y0+6, assets/corners/6_w5/tr)"
5="image(x0, y1-6, x0+6, y1, assets/corners/6_w5/bl)"
6="image(x1-6, y1-6, x1, y1, assets/corners/6_w5/br)"
}
}

Button
{
minimum-height=0
}

CGamesListPanel
{
bgcolor="window_bg"
font-family=basefont
font-size=16
font-weight=400
font-style=none
textcolor="button_fg"
shadowtextcolor="button_disabled_fg"
selectedtextcolor="button_fg"
selectedbgcolor="button_bg"
render_bg {}
render {}
}

ListPanelInterior
{
render_bg {}
render {}
}

ListPanelSectionHeader
{
font-family=basefont
font-size=16
font-weight=700
font-style=none
textcolor="button_fg"
bgcolor="button_bg"
render_bg {}
render {}
}
ListPanelSectionHeader:hover
{
bgcolor="button_hover_bg"
}

ListPanelSectionCollapser
{
textcolor="button_fg"
bgcolor="button_bg"
render_bg {}
}
ListPanelSectionCollapser:hover
{
bgcolor="button_hover_bg"
}

ListPanelColumnSelectButton
{
textcolor="button_fg"
bgcolor="button_bg"
render_bg {}
}
ListPanelColumnSelectButton:hover
{
bgcolor="button_hover_bg"
}

GameItem_Uninstalled
{
textcolor="button_disabled_fg"
selectedtextcolor="button_fg"
}
GameItem_Uninstalled:hover
{
textcolor="button_disabled_fg"
selectedtextcolor="button_fg"
}

GameItem_Installed
{
textcolor="button_fg"
selectedtextcolor="button_fg"
}
GameItem_Installed:hover
{
textcolor="button_fg"
selectedtextcolor="button_fg"
}

GameItem_Running
{
textcolor="success"
selectedtextcolor="success"
}
GameItem_Running:hover
{
textcolor="success"
selectedtextcolor="success"
}

GameItem_Shortcut
{
textcolor="button_fg"
selectedtextcolor="button_fg"
}
GameItem_Shortcut:hover
{
textcolor="button_fg"
selectedtextcolor="button_fg"
}

GameItem_Mod
{
textcolor="button_fg"
selectedtextcolor="button_fg"
}
GameItem_Mod:hover
{
textcolor="button_fg"
selectedtextcolor="button_fg"
}

GameItem_Updating
{
textcolor="accent"
selectedtextcolor="accent"
}
GameItem_Updating:hover
{
textcolor="accent"
selectedtextcolor="accent"
}
GameItem_Updating:selected
{
textcolor="accent"
selectedtextcolor="accent"
}

GameItem_Decrypting
{
textcolor="accent"
selectedtextcolor="accent"
}
GameItem_Decrypting:hover
{
textcolor="accent"
selectedtextcolor="accent"
}
GameItem_Decrypting:selected
{
textcolor="accent"
selectedtextcolor="accent"
}

GameItem_Syncing
{
textcolor="accent"
selectedtextcolor="accent"
}
GameItem_Syncing:hover
{
ttextcolor="accent"
selectedtextcolor="accent"
}
GameItem_Syncing:selected
{
textcolor="accent"
selectedtextcolor="accent"
}

GameItem_LockedSiteLicense
{
textcolor="button_disabled_fg"
selectedtextcolor="button_fg"
}
GameItem_LockedSiteLicense:hover
{
textcolor="button_disabled_fg"
selectedtextcolor="button_fg"
}
}

layout
{
place { control="frame_minimize,frame_maximize,frame_close" align=right spacing=14 margin-right=12 y=12 }

place { control="MenuBar" width=34 height=34 y=7 margin-right=12 align=right end-right="frame_minimize" }

place { control="library_search" width=max height=34 y=7 margin-left=7 margin-right=12 end-right="MenuBar" }

place { control="frame_title" width=max height=48 }
place { control="frame_captiongrip" margin=2 width=max height=48 }

place { control="gameslist" width=max height=max margin-top=48 }

region { name="hidden" width=0 height=0 margin-left=-999 }
place { control="subnavgroup_library,label_search_icon,library_filters" region="hidden" width=0 height=0 }
}
}
Loading

0 comments on commit e622958

Please sign in to comment.