From eac82dd227b8553ebcbdd203663a1fddead44bad Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Tue, 22 Apr 2025 22:01:53 -0300 Subject: [PATCH] :lipstick: ags(style): better styles for control-center, fixed scrollbar hover --- ags/style.scss | 6 +- ags/style/_control-center.scss | 102 ++++++++++++++++++++------------- 2 files changed, 65 insertions(+), 43 deletions(-) diff --git a/ags/style.scss b/ags/style.scss index 0ddcc92..d649442 100644 --- a/ags/style.scss +++ b/ags/style.scss @@ -287,16 +287,16 @@ scrollbar trough { border-radius: 12px; &:hover, &:active, &:focus { - margin: 0 2px; + margin: 2px; } } &:hover, &:active, &:focus { - padding: 0 2px; + padding: 2px; } } -slider, scale { +scale { & marks mark { & indicator { color: colors.$fg-disabled; diff --git a/ags/style/_control-center.scss b/ags/style/_control-center.scss index 8628eb7..02886c2 100644 --- a/ags/style/_control-center.scss +++ b/ags/style/_control-center.scss @@ -8,11 +8,11 @@ @include mixins.reset-props; background: colors.$bg-translucent; - border-radius: 24px; - padding: 20px 14px; + border-radius: 28px; + padding: 20px; - & > box { - margin: 9px; + & > * { + margin: 9px 0; &:first-child { margin-top: 0; @@ -44,8 +44,7 @@ } & .sliders { - padding: 2px 6px; - + padding: 0; & > box { margin: 8px 0; @@ -58,10 +57,61 @@ } } - .icon.nf { + label.nf, + button.nf label { margin-right: 8px; font-size: 15px; } + + button.more { + @include mixins.hover-shadow; + + padding: 4px; + border-radius: 16px; + margin-left: 6px; + } + + & .page .content { + & label.name { + font-size: 14px; + font-weight: 500; + } + & trough { + margin-right: 10px; + } + } + } + + & .page { + transition: 120ms linear; + background: colors.$bg-secondary; + padding: 14px; + border-radius: 24px; + + & .header { + margin-bottom: 12px; + + & .top > .title { + font-size: 20px; + font-weight: 600; + } + + & > .description { + font-size: 12px; + font-weight: 500; + color: colors.$fg-disabled; + } + + & button label { + font-size: 14px; + } + } + + & .sub-header { + font-size: 14px; + font-weight: 500; + margin-bottom: 6px; + } } } @@ -69,7 +119,7 @@ box.history { margin-top: 10px; background: colors.$bg-translucent; border-radius: 24px; - padding: 20px 14px; + padding: 20px; transition: 120ms linear; &.hide { @@ -106,8 +156,10 @@ box.history { & > flowboxchild .tile { $radius: 16px; - &:not(.toggled) > .toggle-button { + &:not(.toggled) > .toggle-button, + &:not(.toggled) > button.more { @include mixins.hover-shadow; + background: colors.$bg-primary; } &.toggled .toggle-button:hover, @@ -126,7 +178,6 @@ box.history { } & > .toggle-button { - background: colors.$bg-primary; border-radius: $radius; & .content { @@ -164,37 +215,8 @@ box.history { } .tile-pages { - transition: 120ms linear; - & > .page { - background: colors.$bg-secondary; - padding: 14px; - border-radius: 24px; - - & .header { - margin-bottom: 12px; - - & .top > .title { - font-size: 20px; - font-weight: 600; - } - - & > .description { - font-size: 12px; - font-weight: 500; - color: colors.$fg-disabled; - } - - & button label { - font-size: 14px; - } - } - - & .sub-header { - font-size: 14px; - font-weight: 500; - margin-bottom: 6px; - } + margin-top: 10px; & button { @include mixins.hover-shadow;