From 4b4be40b7db2c77afa11dc7e96ae61aa6ebe6ad5 Mon Sep 17 00:00:00 2001 From: Vince Date: Sun, 6 Jun 2021 21:57:48 +0800 Subject: [PATCH] Fixed mate panel issues --- src/sass/gtk/_applications-3.0.scss | 59 ++++------------------------- 1 file changed, 7 insertions(+), 52 deletions(-) diff --git a/src/sass/gtk/_applications-3.0.scss b/src/sass/gtk/_applications-3.0.scss index 3a4efcd..2502d61 100644 --- a/src/sass/gtk/_applications-3.0.scss +++ b/src/sass/gtk/_applications-3.0.scss @@ -2787,7 +2787,7 @@ MsdOsdWindow.background.osd { .mate-panel-menu-bar, panel-toplevel.background { &, menubar { - background-color: opacify($panel_bg, 1); + background-color: $panel_bg; } menubar, @@ -2796,12 +2796,10 @@ panel-toplevel.background { color: $panel_fg; } - button:not(#tasklist-button) { // Panel buttons - @extend %panel_button; - } - button, #tasklist-button { + @extend %panel_button; + label, image { color: inherit; } @@ -4035,59 +4033,16 @@ window.background > box.vertical > overlay > stack > scrolledwindow.frame { // vala-panel // window#ValaPanel.background { - // background-image: linear-gradient(0deg, $panel_bottom_color 0%, $panel_top_color 100%); - // border: 1px solid $header_border; - // color: currentColor; - widget.-vala-panel-background { > separator { // separator applet background: none; } } -} -button.flat.-panel-button, -button#tasklist-button.toggle.flat, -// tasklist-arrow-button.toggle.flat.-panel-flat-button, // xfce tasklist button -button.flat.-panel-icon-button { - // @extend %budgie_icon_tasklist_button; - - &:hover { - box-shadow: inset 0 -2px rgba($selected_bg_color, 0.5); - background: none; - } - - &:active, - &:checked { - box-shadow: inset 0 -2px $selected_bg_color; - color: if($variant == 'light', darken($panel_fg, 5%), $selected_fg_color); - background: none; - } -} - -.unpinned button.flat.-panel-icon-button { - border-radius: 0; - - &:hover, - &:active, - &:checked { - box-shadow: inset 0 -2px $selected_bg_color; - color: if($variant == 'light', darken($panel_fg, 5%), $selected_fg_color); - } -} - -.pinned button.flat.-panel-icon-button.running { - border-radius: 0; - - > image { - background-position: bottom center; - } - - &:hover, - &:active, - &:checked { - box-shadow: inset 0 -2px $selected_bg_color; - color: if($variant == 'light', darken($panel_fg, 5%), $selected_fg_color); + button.flat.-panel-button, + button#tasklist-button.toggle.flat, + button.flat.-panel-icon-button { + @extend %panel_button; } }