dateMenu: Add class to menu so border-radius can be set in stylesheet
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>
This commit is contained in:
parent
9758227ff5
commit
da6950562a
@ -1,10 +1,15 @@
|
||||
/* Date/Time Menu */
|
||||
|
||||
// overall menu
|
||||
|
||||
#calendarArea {
|
||||
padding: $base_margin;
|
||||
}
|
||||
|
||||
.datemenu-popover {
|
||||
border-radius: $base_border_radius * 1.5 + $base_padding * 3;
|
||||
}
|
||||
|
||||
// calendar menu side column
|
||||
.datemenu-calendar-column {
|
||||
spacing: $base_padding;
|
||||
|
@ -37,7 +37,7 @@
|
||||
// do-not-disturb + clear button
|
||||
.message-list-controls {
|
||||
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
|
||||
padding: $base_padding;
|
||||
padding: $base_padding $base_padding * 2;
|
||||
spacing: $base_padding;
|
||||
@extend %heading;
|
||||
|
||||
|
@ -890,6 +890,7 @@ class DateMenuButton extends PanelMenu.Button {
|
||||
// For some minimal compatibility with PopupMenuItem
|
||||
bin._delegate = this;
|
||||
this.menu.box.add_child(bin);
|
||||
this.menu.box.add_style_class_name('datemenu-popover');
|
||||
|
||||
hbox = new St.BoxLayout({name: 'calendarArea'});
|
||||
bin.add_child(hbox);
|
||||
|
Loading…
x
Reference in New Issue
Block a user