[gnome-shell] panel: fix size of battery percentage label



commit 8c909e37e9b59e4e79aaf3581f297d606cecad6c
Author: Björn Daase <bjoern daase net>
Date:   Sat May 23 22:48:47 2020 +0200

    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 624228c39d..d8b7da9c71 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('<span size="smaller">' + label + '</span>');
+        this._percentageLabel.text = label;
 
         // The status label
         this._item.label.text = this._getStatus();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]