Skip to content

Commit a2d6870

Browse files
committed
gtk4: Style menubar menus
Attempt to look identical with GTK 3 menus, as far as possible.
1 parent 1e8e9c7 commit a2d6870

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

common/gtk-4.0/sass/_common.scss

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,26 +2154,20 @@ popover.menu {
21542154

21552155
// initial styling for popover menu and bar
21562156
menubar {
2157-
padding: 0px;
2157+
padding: 0;
21582158
background-color: opacify($header_bg, 1);
21592159
color: $header_fg;
21602160

21612161
&:backdrop {
21622162
color: transparentize($header_fg, 0.3);
21632163
}
21642164

2165-
// adjust traditional menubar menu corner radius for Arc
2166-
popover.menu > contents {
2167-
border-radius: 0;
2168-
}
2169-
21702165
> item {
21712166
min-height: 16px;
2172-
padding: 4px 8px;
2167+
padding: 4px $_menu-padding;
21732168

2174-
&:selected { //Seems like it :hover even with keyboard focus
2175-
background-color: $selected_bg_color;
2176-
color: $selected_fg_color;
2169+
&:selected { //Seems like it :selected even with keyboard focus
2170+
@extend %selected_items;
21772171
}
21782172

21792173
&:disabled {
@@ -2182,16 +2176,18 @@ menubar {
21822176
}
21832177
}
21842178

2179+
& > item popover.menu modelbutton {
2180+
border-radius: 0;
2181+
}
2182+
21852183
& > item popover.menu.background > contents {
2186-
padding: 5px;
2184+
padding: 4px 0;
2185+
border-radius: 2px;
21872186
}
2187+
21882188
//nested submenus
21892189
& > item popover.menu popover.menu {
2190-
padding: 0 0 4px 0;
2191-
}
2192-
& > item popover.menu.background popover.menu.background > contents {
2193-
margin: 0;
2194-
border-radius: 3px; //including top
2190+
margin-top: -5px;
21952191
}
21962192
}
21972193

0 commit comments

Comments
 (0)