Skip to content

Commit

Permalink
Downloads/Collections Support (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foldex authored Nov 10, 2024
1 parent fb698b3 commit 935e4d7
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 2 deletions.
10 changes: 10 additions & 0 deletions adwaita/css/main/library/collections/collections.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Background */
body.DesktopUI div.u1xD3KJEgksF_J_5TLZzO,
body.DesktopUI div._2sNr7PFYcJZWNkEMCDVVPR {
background: none !important;
}

/* Card Border */
body.DesktopUI div._3IWn-2rn7x98o5fDd0rAxb {
border: none !important;
}
79 changes: 79 additions & 0 deletions adwaita/css/main/library/downloads/downloads.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/* Header Background */
body.DesktopUI div._3KDkLoCR8OM8xfdQysKn9t
{
background: rgb(var(--adw-view-bg-rgb)) !important;
}

/* Header Gradient */
body.DesktopUI div._3mZ2rKd2RECK4q4ufmsDYX.pHDI1ddoKXceD5KL7W-4z
{
background: none !important;
}

/* Header Bottom Bar */
body.DesktopUI div.SEmVpmXrYVl3OxL1sDFTg
{
background: none !important;
}

/* Body Background */
body.DesktopUI div._1bq4x9pa4-9RLY-dXWUZTp
{
background: rgb(var(--adw-window-bg-rgb)) !important;
}

/* Cards */
body.DesktopUI div._1VNuYHM6BPBOJspC6zPf5r:hover
{
background: rgba(var(--adw-card-bg-rgb), var(--adw-card-hover-opacity)) !important;
border-radius: var(--adw-card-radius) !important;
}

/* Active Download Cards */
body.DesktopUI div._1VNuYHM6BPBOJspC6zPf5r.IbePLaw-vSvhG1GTenYFg {
background: rgba(var(--adw-card-bg-rgb), var(--adw-card-opacity)) !important;
}

body.DesktopUI div.IbePLaw-vSvhG1GTenYFg .OINnOU8K5HzPe2nzczpZi,
body.DesktopUI div.IbePLaw-vSvhG1GTenYFg .OINnOU8K5HzPe2nzczpZi:hover {
border: none !important;
}

/* Buttons */
body.DesktopUI button._3oavRVhIS9tC3vBsFT4Ggi.DialogButton:enabled,
body.DesktopUI button._3Tfp8-wTAttW3WVa_X9JVC.DialogButton:enabled,
body.DesktopUI button._1GdR5LbENV7LOGROJBxohI.DialogButton:enabled
{
background: rgba(var(--adw-window-fg-rgb), var(--adw-button-bg-opacity)) !important;
border-radius: var(--adw-button-radius) !important;
}

body.DesktopUI button._3oavRVhIS9tC3vBsFT4Ggi.DialogButton:active,
body.DesktopUI button._3Tfp8-wTAttW3WVa_X9JVC.DialogButton:active,
body.DesktopUI button._1GdR5LbENV7LOGROJBxohI.DialogButton:active
{
background: rgba(var(--adw-window-fg-rgb), var(--adw-button-bg-opacity-active)) !important;
border-radius: var(--adw-button-radius) !important;
}

body.DesktopUI button._3oavRVhIS9tC3vBsFT4Ggi.DialogButton:hover,
body.DesktopUI button._3Tfp8-wTAttW3WVa_X9JVC.DialogButton:hover,
body.DesktopUI button._1GdR5LbENV7LOGROJBxohI.DialogButton:hover
{
background: rgba(var(--adw-window-fg-rgb), var(--adw-button-bg-opacity-hover)) !important;
border-radius: var(--adw-button-radius) !important;
}

body.DesktopUI button._3oavRVhIS9tC3vBsFT4Ggi.DialogButton::before,
body.DesktopUI button._3Tfp8-wTAttW3WVa_X9JVC.DialogButton::before,
body.DesktopUI button._1GdR5LbENV7LOGROJBxohI.DialogButton:before
{
box-shadow: none !important;
}

body.DesktopUI button._3oavRVhIS9tC3vBsFT4Ggi.DialogButton:hover::before,
body.DesktopUI button._3Tfp8-wTAttW3WVa_X9JVC.DialogButton:hover::before,
body.DesktopUI button._1GdR5LbENV7LOGROJBxohI.DialogButton:hover::before
{
box-shadow: none !important;
}
4 changes: 2 additions & 2 deletions adwaita/extras/login/hide_qr.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Hide QR Login */
body.DesktopUI .login_Login_VZ6x_ .newlogindialog_QRSection_2ZDyS,
body.DesktopUI .VZ6x_grhNkIYJG__jEEyp ._2ZDySoTopw8XofnCKLNxDL
body.DesktopUI .VZ6x_grhNkIYJG__jEEyp ._3wSeH3OorL-tMzwXL55smN
{
display: none !important;
}
}
4 changes: 4 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
"css/main/library/sidebar/gamelist.css",
"css/main/library/sidebar/sidebar.css",

"css/main/library/collections/collections.css",

"css/main/library/downloads/downloads.css",

"css/main/library/library.css",

"css/chat/chat.css",
Expand Down
4 changes: 4 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
"adwaita/css/main/library/sidebar/gamelist.css": ["all"],
"adwaita/css/main/library/sidebar/sidebar.css": ["all"],

"adwaita/css/main/library/collections/collections.css": ["all"],

"adwaita/css/main/library/downloads/downloads.css": ["all"],

"adwaita/css/main/library/library.css": ["all"],

"adwaita/css/widgets/avatars.css": ["all"],
Expand Down

0 comments on commit 935e4d7

Please sign in to comment.