Adwaita: darker background for popovers

This commit is contained in:
Lapo Calamandrei 2016-02-05 14:10:36 +01:00
parent 61307deaf7
commit 56b1b08bb8
4 changed files with 14 additions and 4 deletions

View File

@ -18,6 +18,8 @@ $top_hilight: $borders_edge;
$dark_fill: mix($borders_color, $bg_color, 35%);
$headerbar_color: if($variant == 'light', lighten($bg_color, 5%), darken($bg_color, 3%));
$menu_color: if($variant == 'light', $base_color, mix($bg_color, $base_color, 20%));
$popover_bg_color: darken($bg_color, 5%);
$popover_hover_color: $bg_color;
$scrollbar_bg_color: darken($bg_color, 7%);

View File

@ -804,7 +804,7 @@ modelbutton.flat,
outline-offset: -2px;
@extend %undecorated_button;
&:hover { background-color: $base_hover_color; } // FIXME
&:hover { background-color: $popover_hover_color; }
&:selected { @extend %selected_items; }
@ -1733,12 +1733,16 @@ menuitem {
popover.background {
padding: 2px;
border-radius: 5px;
background-color: $popover_bg_color;
&, .csd & { border: 1px solid $borders_color; }
box-shadow: 0 1px 2px transparentize(black, 0.7);
&:backdrop { box-shadow: none; }
&:backdrop {
background-color: $backdrop_bg_color;
box-shadow: none;
}
> list,
> .view,

View File

@ -1196,7 +1196,7 @@ modelbutton.flat,
outline-offset: -2px; }
modelbutton.flat:hover,
.menuitem.button.flat:hover {
background-color: rgba(238, 238, 236, 0.05); }
background-color: #393f3f; }
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
@ -2118,10 +2118,12 @@ menuitem radio {
popover.background {
padding: 2px;
border-radius: 5px;
background-color: #2d3232;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
popover.background, .csd popover.background {
border: 1px solid #1c1f1f; }
popover.background:backdrop {
background-color: #393f3f;
box-shadow: none; }
popover.background > list,
popover.background > .view,

View File

@ -1196,7 +1196,7 @@ modelbutton.flat,
outline-offset: -2px; }
modelbutton.flat:hover,
.menuitem.button.flat:hover {
background-color: rgba(46, 52, 54, 0.05); }
background-color: #e8e8e7; }
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
@ -2128,10 +2128,12 @@ menuitem radio {
popover.background {
padding: 2px;
border-radius: 5px;
background-color: #dcdcda;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
popover.background, .csd popover.background {
border: 1px solid #9d9d99; }
popover.background:backdrop {
background-color: #e8e8e7;
box-shadow: none; }
popover.background > list,
popover.background > .view,