From 60cdab76a0d49b85c4174bd36c0c675524dfee1b Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Wed, 19 Jun 2024 18:55:07 +0800 Subject: [PATCH] update --- src/sass/gnome-shell/_extensions-46-0.scss | 1 + .../extensions-46-0/_dash-to-dock.scss | 2 + .../gnome-shell/extensions-46-0/_misc.scss | 170 ++++++++++++++++++ 3 files changed, 173 insertions(+) create mode 100644 src/sass/gnome-shell/extensions-46-0/_misc.scss diff --git a/src/sass/gnome-shell/_extensions-46-0.scss b/src/sass/gnome-shell/_extensions-46-0.scss index a1aea49c..c467340d 100644 --- a/src/sass/gnome-shell/_extensions-46-0.scss +++ b/src/sass/gnome-shell/_extensions-46-0.scss @@ -1 +1,2 @@ @import 'extensions-46-0/dash-to-dock'; +@import 'extensions-46-0/misc'; diff --git a/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss b/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss index bd2f566f..dfef47dd 100644 --- a/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss +++ b/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss @@ -142,6 +142,8 @@ .app-grid-running-dot { background-color: if($variant == 'light', rgba(black, 0.75), rgba(white, 0.75)); + margin: 0 !important; + offset-y: 0 !important; } StWidget.focused .app-grid-running-dot { diff --git a/src/sass/gnome-shell/extensions-46-0/_misc.scss b/src/sass/gnome-shell/extensions-46-0/_misc.scss new file mode 100644 index 00000000..97a79e26 --- /dev/null +++ b/src/sass/gnome-shell/extensions-46-0/_misc.scss @@ -0,0 +1,170 @@ +// +// Dash to panel +// +#preview-menu { + margin: 0 6px 6px !important; + padding-bottom: 8px !important; + + &, &:hover, &:selected { + border-radius: $wm_radius !important; + } +} + + +// +// OpenWeather Extension +// +.openweather { + &-button, + &-button-action, + &-menu-button-container, + &-button-box { + border: 1px solid transparent !important; + } + + &-provider { + // generic text buttons are allocated with y-expand-ed + padding: 0 16px; + font-weight: 500; + @include button(flat-normal); + &:hover { @include button(flat-hover); } + &:focus { @include button(flat-focus); } + &:active { @include button(flat-active); } + &:insensitive { @include button(flat-disabled); } + border: 1px solid transparent !important; + } + + &-current { + &-icon, + &-summary, + &-summarybox { + background: none; + color: $fg_color; + } + + &-databox-values { + background: none; + color: $hint_fg_color; + } + + &-databox-captions { + background: none; + color: $hint_fg_color; + } + } + + &-forecast { + &-icon, + &-summary { + background: none; + color: $alt_fg_color; + } + + &-day, + &-temperature { + background: none; + color: $hint_fg_color; + } + } + + &-sunrise-icon, + &-sunset-icon, + &-build-icon { color: $alt_fg_color; } +} + +// +// Gsconnect +// +.gsconnect-device-menu { + background-color: if($variant == 'light', rgba(black, 0.05), rgba(white, 0.05)); + border-radius: $bt_radius; + margin: 0 $container_padding / 2; + padding: $bt_radius 0; + box-shadow: none; + + .popup-menu-item { + margin: 0 $container_padding / 2 !important; + height: 16px !important; + border-radius: $bt_radius !important; + + &:hover { + color: $fg_color !important; + background-color: rgba($fg_color, 0.1) !important; + } + + > :first-child { + &:ltr { padding-left: 0 !important; margin-left: 0 !important; } + &:rtl { padding-right: 0 !important; margin-right: 0 !important; } + } + } +} + +// +// Pop_OS cosmic widget styling +// + +.cosmic-solid-bg { + background-color: #222222; +} + +.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; + } + } + } +} + +// +// Places Menu +// + +.place-menu-item { + &:ltr { + padding-left: 0 !important; + padding-right: $base_padding * 5 !important; + } + + &:rtl { + padding-right: 0 !important; + padding-left: $base_padding * 5 !important; + } + + StLabel { margin-left: $base_padding / 2; } + + .button { + border-radius: $circular_radius; + padding: $base_padding / 2; + + &:ltr { margin-left: 0 !important; } + &:rtl { margin-right: 0 !important; } + } + + &:focus, &:hover, &:selected { + .button { + @extend %osd_button; + } + } +}