This commit is contained in:
vinceliuice 2025-04-10 10:32:34 +08:00
parent 126d75ec2d
commit 4ced02d386
3 changed files with 65 additions and 2 deletions

View File

@ -2314,6 +2314,8 @@ headerbar {
margin: 0;
background-color: transparent;
background-image: none;
color: transparent;
-gtk-icon-size: 0;
}
&.close, &.maximize, &.minimize {

View File

@ -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;
}
}

View File

@ -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;