From 935e4d7c4ed60cda4ea38781317f8666d1cfd23d Mon Sep 17 00:00:00 2001 From: Foldex <47908676+Foldex@users.noreply.github.com> Date: Sun, 10 Nov 2024 04:39:18 -0500 Subject: [PATCH] Downloads/Collections Support (#282) --- .../main/library/collections/collections.css | 10 +++ .../css/main/library/downloads/downloads.css | 79 +++++++++++++++++++ adwaita/extras/login/hide_qr.css | 4 +- install.py | 4 + theme.json | 4 + 5 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 adwaita/css/main/library/collections/collections.css create mode 100644 adwaita/css/main/library/downloads/downloads.css diff --git a/adwaita/css/main/library/collections/collections.css b/adwaita/css/main/library/collections/collections.css new file mode 100644 index 0000000..632d462 --- /dev/null +++ b/adwaita/css/main/library/collections/collections.css @@ -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; +} diff --git a/adwaita/css/main/library/downloads/downloads.css b/adwaita/css/main/library/downloads/downloads.css new file mode 100644 index 0000000..1161582 --- /dev/null +++ b/adwaita/css/main/library/downloads/downloads.css @@ -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; +} diff --git a/adwaita/extras/login/hide_qr.css b/adwaita/extras/login/hide_qr.css index 879ada8..a10a4d2 100644 --- a/adwaita/extras/login/hide_qr.css +++ b/adwaita/extras/login/hide_qr.css @@ -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; -} \ No newline at end of file +} diff --git a/install.py b/install.py index d1c71bf..677433d 100755 --- a/install.py +++ b/install.py @@ -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", diff --git a/theme.json b/theme.json index 6cbeacb..a0fe381 100644 --- a/theme.json +++ b/theme.json @@ -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"],