Skip to content

Commit 0220883

Browse files
committed
[Gtk-3.20][Gtk-3.22] GtkCalendar under popover menu
1 parent 23f1543 commit 0220883

1 file changed

Lines changed: 29 additions & 25 deletions

File tree

src/gtk-3.20/scss/widgets/_menu.scss

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
@import "entry";
22

33

4+
5+
@mixin menu_calendar($bg, $fg) {
6+
color: $fg;
7+
8+
&.header {
9+
border-bottom: 1px solid shade($bg, ($contrast + .1));
10+
border-radius: 0;
11+
12+
&:backdrop { border-color: shade($bg, ($contrast + .1)); }
13+
}
14+
15+
&.button {
16+
@extend %undecorated_button;
17+
color: alpha($fg, .55);
18+
19+
&:hover {
20+
@extend %undecorated_button;
21+
color: $fg;
22+
}
23+
}
24+
25+
&:indeterminate,
26+
&:indeterminate:backdrop { color: mix($fg, $bg, .5); }
27+
}
28+
29+
430
/*********
531
! Menubar
632
**********/
@@ -115,31 +141,7 @@
115141
}
116142
}
117143

118-
calendar {
119-
color: $menu_fg_color;
120-
121-
&.header {
122-
border-bottom: 1px solid shade($menu_bg_color, ($contrast + .1));
123-
border-radius: 0;
124-
125-
&:backdrop { border-color: shade($menu_bg_color, ($contrast + .1)); }
126-
}
127-
128-
&.button {
129-
@extend %undecorated_button;
130-
131-
color: alpha($menu_fg_color, .55);
132-
133-
&:hover {
134-
@extend %undecorated_button;
135-
136-
color: $menu_fg_color;
137-
}
138-
}
139-
140-
&:indeterminate,
141-
&:indeterminate:backdrop { color: mix($menu_fg_color, $menu_bg_color, .5); }
142-
}
144+
calendar { @include menu_calendar($menu_bg_color, $menu_fg_color); }
143145

144146
// avoids labels color being overridden, see
145147
// https://bugzilla.gnome.org/show_bug.cgi?id=767058
@@ -276,6 +278,8 @@
276278

277279
button { @include button($menu_bg_color, $menu_fg_color); }
278280

281+
calendar { @include menu_calendar($menu_bg_color, $menu_fg_color); }
282+
279283
> list, > .view, > toolbar {
280284
border-style: none;
281285
background-color: transparent;

0 commit comments

Comments
 (0)