[gnome-shell/wip/aggregate-menu: 24/56] power: Restyle the power menu for the new design
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 24/56] power: Restyle the power menu for the new design
- Date: Tue, 16 Jul 2013 20:56:04 +0000 (UTC)
commit a910abfc1dc9346ca1a412bfcd0f5b6c8fef26e0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 29 15:33:46 2013 -0400
power: Restyle the power menu for the new design
Remove the icon next to devices, and make the percentage have the
"status" color.
js/ui/status/power.js | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index 22400a3..515c716 100644
--- a/js/ui/status/power.js
+++ b/js/ui/status/power.js
@@ -175,18 +175,11 @@ const DeviceItem = new Lang.Class({
let [device_id, device_type, icon, percentage, state, time] = device;
- this._box = new St.BoxLayout({ style_class: 'popup-device-menu-item' });
this._label = new St.Label({ text: this._deviceTypeToString(device_type) });
-
- this._icon = new St.Icon({ gicon: Gio.icon_new_for_string(icon),
- style_class: 'popup-menu-icon' });
-
- this._box.add_actor(this._icon);
- this._box.add_actor(this._label);
- this.addActor(this._box);
+ this.addActor(this._label);
let percentLabel = new St.Label({ text: C_("percent of battery remaining",
"%d%%").format(Math.round(percentage)),
- style_class: 'popup-battery-percentage' });
+ style_class: 'popup-status-menu-item popup-battery-percentage' });
this.addActor(percentLabel, { align: St.Align.END });
//FIXME: ideally we would like to expose this._label and percentLabel
this.actor.label_actor = percentLabel;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]