Set the status icon size with the system-status-icon style

yahoo_weather
Jean-Philippe Braun 13 years ago committed by Simon Legner
parent 954f80d1b7
commit 99659e1d39
  1. 3
      src/extension.js

@ -118,9 +118,8 @@ WeatherMenuButton.prototype = {
// Panel icon // Panel icon
this._weatherIcon = new St.Icon({ this._weatherIcon = new St.Icon({
icon_type: this._icon_type, icon_type: this._icon_type,
icon_size: Main.panel.actor.get_theme_node().get_height() - 2,
icon_name: 'view-refresh-symbolic', icon_name: 'view-refresh-symbolic',
style_class: 'weather-icon' + (Main.panel.actor.get_direction() == St.TextDirection.RTL ? '-rtl' : '') style_class: 'system-status-icon weather-icon' + (Main.panel.actor.get_direction() == St.TextDirection.RTL ? '-rtl' : '')
}); });
// Label // Label

Loading…
Cancel
Save