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:
Sam Hewitt 2024-02-05 13:04:15 -03:30 committed by Florian Müllner
parent 9758227ff5
commit da6950562a
3 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);