calendar: Stylesheet clean up & fixes
- added style class for when there are no world clocks present - restructured the scss to match the widget structure - cleaned up padding and font color styles - improved high contrast support Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7324 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3120>
This commit is contained in:
@ -417,6 +417,12 @@ class WorldClocksSection extends St.Button {
|
||||
x_align: Clutter.ActorAlign.START,
|
||||
text: title,
|
||||
});
|
||||
|
||||
if (this._locations.length === 0)
|
||||
header.add_style_class_name('no-world-clocks');
|
||||
else
|
||||
header.remove_style_class_name('no-world-clocks');
|
||||
|
||||
if (this._grid.text_direction === Clutter.TextDirection.RTL)
|
||||
layout.attach(header, 2, 0, 1, 1);
|
||||
else
|
||||
|
Reference in New Issue
Block a user