Fixed issues

This commit is contained in:
vinceliuice
2023-04-09 12:44:05 +08:00
parent 51033abc94
commit 9bc382b7c1
3 changed files with 32 additions and 9 deletions

View File

@@ -1323,9 +1323,15 @@ searchbar > revealer > box {
min-height: $small-size; min-height: $small-size;
padding: $space-size $space-size * 2; padding: $space-size $space-size * 2;
border-radius: $window-radius $window-radius 0 0; border-radius: $window-radius $window-radius 0 0;
box-shadow: inset 0 1px highlight($titlebar); border: none;
background-color: $titlebar; background-color: $titlebar;
@if $variant == 'light' or $rimless == 'true' {
box-shadow: inset 0 1px highlight($titlebar);
} @else {
box-shadow: none;
}
&:backdrop { &:backdrop {
background-color: $titlebar-backdrop; background-color: $titlebar-backdrop;
} }
@@ -1348,9 +1354,9 @@ searchbar > revealer > box {
padding: $space-size; padding: $space-size;
@if $rimless == 'false' and $variant == 'dark' { @if $rimless == 'false' and $variant == 'dark' {
box-shadow: inset 0 -1px $border; box-shadow: none;
} @else { } @else {
box-shadow: inset 0 1px highlight($titlebar), inset 0 -1px $border; box-shadow: inset 0 1px highlight($titlebar);
} }
} }
@@ -3102,6 +3108,12 @@ messagedialog { // Message Dialog styling
&.background { &.background {
background-color: if($variant == 'dark', background(f), background(c)); background-color: if($variant == 'dark', background(f), background(c));
.titlebar {
&, &:backdrop {
background-color: if($variant == 'dark', background(f), background(c));
}
}
&.csd { // rounded bottom border styling for csd version &.csd { // rounded bottom border styling for csd version
border-bottom-left-radius: $window-radius; border-bottom-left-radius: $window-radius;
border-bottom-right-radius: $window-radius; border-bottom-right-radius: $window-radius;
@@ -3111,6 +3123,12 @@ messagedialog { // Message Dialog styling
} @else { } @else {
background-color: $surface; background-color: $surface;
} }
.titlebar {
&, &:backdrop {
background-color: if($variant == 'dark', transparent, $surface);
}
}
} }
} }
@@ -3118,10 +3136,6 @@ messagedialog { // Message Dialog styling
.titlebar { .titlebar {
border: none; border: none;
box-shadow: none; box-shadow: none;
&, &:backdrop {
background-color: transparent;
}
} }
} }

View File

@@ -1686,9 +1686,10 @@ headerbar {
} }
&.default-decoration { &.default-decoration {
min-height: $small-size; min-height: $medium-size;
padding: $space-size; // padding: $space-size;
box-shadow: inset 0 1px highlight($titlebar); box-shadow: inset 0 1px highlight($titlebar);
border: none;
windowcontrols { windowcontrols {
button, button,

View File

@@ -105,6 +105,14 @@
} }
} }
&.background.csd .toolbar {
border-radius: 0 0 $window-radius $window-radius;
}
&.background.csd.maximized .toolbar {
border-radius: 0;
}
.view { .view {
selection, selection,
&:selected { &:selected {