From 8c909e37e9b59e4e79aaf3581f297d606cecad6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Daase?= Date: Sat, 23 May 2020 22:48:47 +0200 Subject: [PATCH] panel: fix size of battery percentage label Adjust the label of the (optional) battery percentage in the top bar to have the same size as all other text in the top bar. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2652 --- js/ui/status/power.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/power.js b/js/ui/status/power.js index 624228c39..d8b7da9c7 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -139,7 +139,7 @@ class Indicator extends PanelMenu.SystemIndicator { label = _("%d\u2009%%").format(100); else label = _("%d\u2009%%").format(this._proxy.Percentage); - this._percentageLabel.clutter_text.set_markup('' + label + ''); + this._percentageLabel.text = label; // The status label this._item.label.text = this._getStatus();