Merge branch 'fix-popover-styles' into 'master'

Fix popover styles (GTK 4)

Closes #2061

See merge request GNOME/gtk!1079
This commit is contained in:
Timm Bäder 2019-10-16 07:42:45 +00:00
commit d36d7d93e6
2 changed files with 38 additions and 42 deletions

View File

@ -26,9 +26,9 @@
static const char *css =
"textview.editor {"
" color: rgb(192, 197, 206);"
" caret-color: white;"
" caret-color: currentColor;"
"}"
"textview.editor text {"
"textview.editor > text {"
" background-color: rgb(43, 48, 59);"
"}"
;

View File

@ -2179,59 +2179,55 @@ menuitem {
popover.background {
background-color: transparent;
padding: 0px;
}
font: initial; // Decouple the font of popovers from their entry/textview
popover.menu>arrow,
popover>arrow {
background-color: $popover_bg_color;
border: 1px solid $borders_color;
}
popover>contents {
padding: 8px;
background-color: $popover_bg_color;
border: 1px solid $borders_color;
margin: 0px;
}
popover.background>contents {
background-color: $popover_bg_color;
box-shadow: 0 1px 2px transparentize(black, 0.7);
.csd &, & {
> arrow,
> contents {
background-color: $popover_bg_color;
border: 1px solid $borders_color;
box-shadow: 0 1px 2px transparentize(black, 0.7);
&:backdrop {
background-color: $backdrop_bg_color;
border-color: $backdrop_borders_color;
box-shadow: none;
}
}
> contents {
padding: 8px;
border-radius: $popover_radius;
> list,
> .view,
> toolbar {
border-style: none;
background-color: transparent;
}
separator { margin: 3px; }
list separator { margin: 0; }
}
&:backdrop {
background-color: $backdrop_bg_color;
box-shadow: none;
}
> list,
> .view,
> toolbar {
border-style: none;
.osd &,
&.touch-selection,
&.magnifier {
background-color: transparent;
}
.csd &, & {
&.touch-selection,
&.magnifier {
> arrow,
> contents {
@extend %osd;
border: 1px solid transparentize(white, 0.9);
button { @extend %osd_button };
box-shadow: none;
}
&.osd { @extend %osd; }
}
separator { margin: 3px; }
list separator { margin: 0px; }
&.touch-selection,
&.magnifier {
button { @extend %osd_button; }
}
}