dateMenu: Fix missing text style for no locations state

- add class to the header when there are no locations so the text appears clickable

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3169>
This commit is contained in:
Sam Hewitt 2024-02-06 12:24:38 -03:30 committed by Florian Müllner
parent 137ba5917c
commit 628f0b5be9
2 changed files with 10 additions and 0 deletions

View File

@ -251,6 +251,11 @@
@extend %heading;
color: $insensitive_fg_color;
// change style when no location is configured
&.no-location {
color: $fg_color;
}
&.location {
font-weight: normal;
}

View File

@ -727,6 +727,11 @@ class WeatherSection extends St.Button {
else
this._titleLabel.text = _('Select weather location…');
if (this._weatherClient.hasLocation)
this._titleLabel.remove_style_class_name('no-location');
else
this._titleLabel.add_style_class_name('no-location');
this._forecastGrid.visible = this._weatherClient.hasLocation;
this._titleLocation.visible = this._weatherClient.hasLocation;