Adwaita: Don't round the non-csd menu corners

Otherwise, the menu will have ugly black corners.

See https://gitlab.gnome.org/GNOME/gtk/issues/1661
This commit is contained in:
nana-4 2019-05-12 17:40:47 +09:00
parent e0e9d8c6b5
commit 7b7fe14b23
3 changed files with 8 additions and 6 deletions

View File

@ -2064,9 +2064,11 @@ menu,
padding: 4px 0px;
background-color: $menu_color;
border: 1px solid $borders_color; // adds borders in a non composited env
border-radius: $menu_radius;
.csd & { border: none; } // axes borders in a composited env
.csd & {
border: none; // axes borders in a composited env
border-radius: $menu_radius;
}
&:backdrop { background-color: $backdrop_menu_color; }

View File

@ -824,9 +824,9 @@ menubar .csd.popup decoration, .menubar .csd.popup decoration { border-radius: 0
.background.popup { background-color: transparent; }
menu, .menu, .context-menu { padding: 4px 0px; background-color: #2f2f2f; border: 1px solid #1b1b1b; border-radius: 5px; }
menu, .menu, .context-menu { padding: 4px 0px; background-color: #2f2f2f; border: 1px solid #1b1b1b; }
.csd menu, .csd .menu, .csd .context-menu { border: none; }
.csd menu, .csd .menu, .csd .context-menu { border: none; border-radius: 5px; }
menu:backdrop, .menu:backdrop, .context-menu:backdrop { background-color: #313131; }

View File

@ -832,9 +832,9 @@ menubar .csd.popup decoration, .menubar .csd.popup decoration { border-radius: 0
.background.popup { background-color: transparent; }
menu, .menu, .context-menu { padding: 4px 0px; background-color: #ffffff; border: 1px solid #cdc7c2; border-radius: 5px; }
menu, .menu, .context-menu { padding: 4px 0px; background-color: #ffffff; border: 1px solid #cdc7c2; }
.csd menu, .csd .menu, .csd .context-menu { border: none; }
.csd menu, .csd .menu, .csd .context-menu { border: none; border-radius: 5px; }
menu:backdrop, .menu:backdrop, .context-menu:backdrop { background-color: #fcfcfc; }