From 78b22d23f6ca0536021ced6652e9e480a1537336 Mon Sep 17 00:00:00 2001 From: Vince Date: Sat, 3 Jul 2021 12:01:06 +0800 Subject: [PATCH] Fixed #348 --- src/sass/gnome-shell/common/_popovers.scss | 1 + .../gnome-shell/extensions-3-28/_misc.scss | 32 ++++++++--------- .../gnome-shell/extensions-40-0/_misc.scss | 34 +++++++++++++++++++ 3 files changed, 50 insertions(+), 17 deletions(-) diff --git a/src/sass/gnome-shell/common/_popovers.scss b/src/sass/gnome-shell/common/_popovers.scss index 774b07d..a3ae136 100644 --- a/src/sass/gnome-shell/common/_popovers.scss +++ b/src/sass/gnome-shell/common/_popovers.scss @@ -140,6 +140,7 @@ $popop_menuitem_radius: $wm_radius - 4px; .popup-separator-menu-item { background: none; border: none; + height: 1px !important; .popup-separator-menu-item-separator { height: 1px; //not really the whole box diff --git a/src/sass/gnome-shell/extensions-3-28/_misc.scss b/src/sass/gnome-shell/extensions-3-28/_misc.scss index 885789d..91233ab 100644 --- a/src/sass/gnome-shell/extensions-3-28/_misc.scss +++ b/src/sass/gnome-shell/extensions-3-28/_misc.scss @@ -62,23 +62,21 @@ &-build-icon { color: $alt_fg_color; } } -// GPaste -.popup-menu { - .search-entry { - color: $fg_color; - selection-background-color: $primary_color; - selected-color: $light_fg_color; - @include entry(normal); +// +// Pop_OS cosmic widget styling +// +.cosmic-dock { + #dock { + background-color: $dash_bg; + border-radius: $dash_radius; + border: 1px solid if($variant == 'light', rgba(black, 0.03), rgba(black, 0.35)); + box-shadow: inset 0 0 0 1px rgba(white, 0.05); + padding: $container_padding; + margin: 6px !important; + } - &:focus { - @include entry(focus); - color: $fg_color; - } - - .search-entry-icon { color: $hint_fg_color; } - - &:hover, &:focus { - .search-entry-icon { color: $fg_color; } - } + &.extended #dock { + border-radius: 0 !important; + margin: 0 !important; } } diff --git a/src/sass/gnome-shell/extensions-40-0/_misc.scss b/src/sass/gnome-shell/extensions-40-0/_misc.scss index 8fdc97a..60b0c88 100644 --- a/src/sass/gnome-shell/extensions-40-0/_misc.scss +++ b/src/sass/gnome-shell/extensions-40-0/_misc.scss @@ -82,6 +82,7 @@ box-shadow: 1px 2px 3px rgba(black, if($variant == 'light', 0.08, 0.35)); .popup-menu-item { + height: 16px !important; border-radius: 0 !important; &:hover { @@ -95,3 +96,36 @@ } } } + +// +// Pop_OS cosmic widget styling +// +.cosmic-dock { + #dock { + background-color: transparent; + + .dash-background { + background-color: $dash_bg; + border: 1px solid if($variant == 'light', rgba(black, 0.08), rgba(black, 0.75)); + box-shadow: inset 0 0 0 1px rgba(white, 0.05); + } + } + + &.extended { + #dash { + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; + padding: 0 0; + + .dash-background { + border-radius: 0; + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; + } + } + } +}