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:
Sam Hewitt
2024-01-15 13:29:26 -03:30
parent 569293fad6
commit e97175d2bf
2 changed files with 142 additions and 100 deletions

View File

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