Skip to content

Commit 93c4b0c

Browse files
author
Mohamed A. Elmeligy
committed
power_applet: rearrange battery label, so the percentage is on left
old: <battery logo> <battery name> <percentage> new: <battery logo> <percentage>\t<battery name>
1 parent 02977f1 commit 93c4b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class DeviceItem extends PopupMenu.PopupBaseMenuItem {
191191
let statusLabel = null;
192192

193193
if (battery_level == UPDeviceLevel.NONE) {
194-
this.label = new St.Label({ text: "%s %d%%".format(description, Math.round(percentage)) });
194+
this.label = new St.Label({ text: "%d%% %s".format(Math.round(percentage), description) });
195195
statusLabel = new St.Label({ text: "%s".format(status), style_class: 'popup-inactive-menu-item' });
196196
} else {
197197
this.label = new St.Label({ text: "%s".format(description) });

0 commit comments

Comments
 (0)