This commit is contained in:
vinceliuice
2023-05-01 00:57:28 +08:00
parent 96d6de2793
commit 12c8c77912
4 changed files with 27 additions and 13 deletions

View File

@@ -88,6 +88,7 @@
background-color: $button !important;
padding: $base_padding $base_padding * 1.75;
border: none !important;
color: $text;
&:hover {
background-color: $divider !important;

View File

@@ -1695,9 +1695,9 @@ menubar,
// otherwise the background bleeds out of the menu edges
.background.popup { background-color: transparent; }
menu,
.menu,
.context-menu {
// .menu,
// .context-menu,
menu {
margin: $space-size; // See https://bugzilla.gnome.org/show_bug.cgi?id=591258
padding: $space-size;
background-color: $surface;
@@ -1780,8 +1780,8 @@ menu,
}
&.bottom {
margin-top: 4px * 2;
margin-bottom: -4px * 3;
margin-top: 8px;
margin-bottom: -12px;
// border-top: 1px solid $divider;
border-radius: $corner-radius;
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
@@ -3695,8 +3695,9 @@ colorchooser .popover.osd {
* Window Decorations *
**********************/
decoration {
transition: $transition-shadow;
transition: none;
border-radius: $window-radius;
border: none;
@if $rimless == 'true' {
box-shadow: $shadow-z16, 0 0 36px transparent;
@@ -3713,14 +3714,15 @@ decoration {
}
// this is used for the resize cursor area
margin: 8px;
margin: 10px;
&:backdrop {
transition: $transition-shadow;
// the transparent shadow here is to enforce that the shadow extents don't
// change when we go to backdrop, to prevent jumping windows.
// The biggest shadow should be in the same order then in the active state
// or the jumping will happen during the transition.
@if $rimless == 'true' {
box-shadow: $shadow-z4, 0 0 36px transparent;
} @else {
@@ -3728,14 +3730,18 @@ decoration {
}
}
.maximized &,
.fullscreen &,
.tiled &,
.tiled-top &,
.tiled-right &,
.tiled-bottom &,
.tiled-left & { border-radius: 0; }
.maximized &,
.fullscreen & {
border-radius: 0;
box-shadow: none;
}
.popup & {
box-shadow: none;
border: none;

View File

@@ -106,8 +106,11 @@ window.background.chromium {
menubar,
headerbar { color: $titlebar-text-secondary; }
// Workaround for non-animatable buttons in headerbar
headerbar button:active { background-color: $overlay-active; }
headerbar.titlebar {
padding: 0 $space-size * 2;
button:active { background-color: $overlay-active; } // Workaround for non-animatable buttons in headerbar
}
spinner { color: $primary; }

View File

@@ -24,8 +24,12 @@
min-height: 16px;
min-width: 16px;
padding: 0;
padding: 0 $space-size;
border-radius: 0;
&.flat.toggle {
padding: 0 $space-size;
}
}
.tasklist button {