Adwaita: menu border-radius fix from gtk3

- avoid painting over the rounded corners with background
This commit is contained in:
Jakub Steiner 2019-02-06 14:34:55 +01:00
parent 8d537379ed
commit a3e517aa9c
3 changed files with 8 additions and 0 deletions

View File

@ -2066,6 +2066,10 @@ menubar,
.csd.popup decoration {border-radius:0;} .csd.popup decoration {border-radius:0;}
} }
// Needed to make the border-radius of menus work
// otherwise the background bleeds out of the menu edges
.background.popup { background-color: transparent; }
menu, menu,
.menu, .menu,
.context-menu { .context-menu {

View File

@ -815,6 +815,8 @@ menubar > menuitem:disabled, .menubar > menuitem:disabled { color: #919190; box-
menubar .csd.popup decoration, .menubar .csd.popup decoration { border-radius: 0; } 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; border-radius: 5px; }
.csd menu, .csd .menu, .csd .context-menu { border: none; } .csd menu, .csd .menu, .csd .context-menu { border: none; }

View File

@ -823,6 +823,8 @@ menubar > menuitem:disabled, .menubar > menuitem:disabled { color: #929595; box-
menubar .csd.popup decoration, .menubar .csd.popup decoration { border-radius: 0; } 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; border-radius: 5px; }
.csd menu, .csd .menu, .csd .context-menu { border: none; } .csd menu, .csd .menu, .csd .context-menu { border: none; }