diff --git a/src/sass/gtk/_common-4.0.scss b/src/sass/gtk/_common-4.0.scss index 1c7c591f..4865a109 100644 --- a/src/sass/gtk/_common-4.0.scss +++ b/src/sass/gtk/_common-4.0.scss @@ -2314,6 +2314,8 @@ headerbar { margin: 0; background-color: transparent; background-image: none; + color: transparent; + -gtk-icon-size: 0; } &.close, &.maximize, &.minimize { diff --git a/src/sass/gtk/apps/_gnome-40.0.scss b/src/sass/gtk/apps/_gnome-40.0.scss index ed5215c9..7358e7af 100644 --- a/src/sass/gtk/apps/_gnome-40.0.scss +++ b/src/sass/gtk/apps/_gnome-40.0.scss @@ -1333,4 +1333,65 @@ dialog-host > widget > widget > toolbarview { border-top: 1px solid $header_border; } } +} + +// +// Chrome +// + +$chrome_bg_color: if($variant == 'light', #dedede, #242424); +$chrome_fg_color: if($variant == 'light', #242424, #dedede); + +window.background.chromium { + box-shadow: 0 12px 20px rgba(black, 0.35), + 0 0 0 1px rgba(black, 0.75); + + &:backdrop { + transition: $shadow_transition; + box-shadow: 0 7px 12px rgba(black, 0.15), + 0 0 0 1px rgba(black, 0.65); + } + + &, headerbar { + &, &:backdrop { + background-color: $chrome_bg_color; + color: $chrome_fg_color; + } + } + + headerbar.header-bar.titlebar { + padding: 0 $container_padding * 2; + color: currentColor; + box-shadow: inset 0 1px rgba(white, 0.1); + border-radius: $wm_radius $wm_radius 0 0; + + button.titlebutton { // title-buttons + // define global titlebutton class sizing + min-width: 22px; + min-height: 22px; + margin: 0 3px; // unset margins + padding: 0; + color: currentColor; // hide stock icons + border: none; + border-radius: $circular_radius; + background-image: none; + background-color: gtkalpha(currentColor, 0.12); + + &:hover { + background-color: gtkalpha(currentColor, 0.2); + transition-duration: $shorter_duration; + } + + &:active { + background-color: gtkalpha(currentColor, 0.3); + transition-duration: $shorter_duration; + } + } + } + + // internal region of toolbar's entry widget + > textview.view, textview { + background-color: gtkalpha(currentColor, 0.1); + color: $chrome_fg_color; + } } \ No newline at end of file diff --git a/src/sass/gtk/apps/_misc.scss b/src/sass/gtk/apps/_misc.scss index 90d839a0..859d0824 100644 --- a/src/sass/gtk/apps/_misc.scss +++ b/src/sass/gtk/apps/_misc.scss @@ -195,7 +195,7 @@ $chrome_menu_fg_color: $fg_color; window.background.chromium { // checked-tab & toolbar & button widgets - background-color: $bg_color; + background-color: $chrome_bg_color; color: $text_color; headerbar.titlebar { @@ -216,7 +216,7 @@ window.background.chromium { min-width: 16px; min-height: 16px; margin: 0; // unset margins - padding: 0 0; + padding: 0; background-size: 16px 16px; color: transparent; // hide stock icons border: none;