Skip to content

Commit

Permalink
fix(#30): use best style defaults for icon and label
Browse files Browse the repository at this point in the history
  • Loading branch information
CleoMenezesJr committed Apr 4, 2024
1 parent c5381fa commit 69e3e29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class weatherOClock {
topBox
.get_parent()
.replace_child(topBox, dateMenu._clockDisplay);

topBox = null;
weather = null;
if (panelWeather) {
Expand All @@ -78,6 +78,7 @@ const PanelWeather = GObject.registerClass(
_init(weather, networkIcon) {
super._init({
visible: false,
y_align: Clutter.ActorAlign.CENTER,
});

this._weather = weather;
Expand All @@ -86,12 +87,14 @@ const PanelWeather = GObject.registerClass(
this._signals = [];

this._icon = new St.Icon({
style_class: 'system-status-icon',
icon_size: 16,
y_align: Clutter.ActorAlign.CENTER,
});

this.add_child(this._icon);

this._label = new St.Label({
y_align: Clutter.ActorAlign.CENTER,
style_class: "clock-label",
});
this._label.clutter_text.y_align = Clutter.ActorAlign.CENTER;
Expand Down

0 comments on commit 69e3e29

Please sign in to comment.