From 037ae77df66a8f9f07b4020982da263140365e54 Mon Sep 17 00:00:00 2001 From: Georg Sieber Date: Sat, 11 Nov 2023 22:51:25 +0100 Subject: [PATCH] fix text on hi-res screens --- battery@schorschii/files/battery@schorschii/desklet.js | 2 +- battery@schorschii/files/battery@schorschii/metadata.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/battery@schorschii/files/battery@schorschii/desklet.js b/battery@schorschii/files/battery@schorschii/desklet.js index 56336b620..04b34f546 100644 --- a/battery@schorschii/files/battery@schorschii/desklet.js +++ b/battery@schorschii/files/battery@schorschii/desklet.js @@ -277,7 +277,7 @@ MyDesklet.prototype = { // label for percent string this.labelText = new St.Label({style_class:"text"}); this.labelText.set_position(0, (segmentHeight / 2) - (newFontSize * global.ui_scale / 1.7)); - this.labelText.style = "width: " + segmentWidthMax.toString() + "px; " + this.labelText.style = "width: " + (segmentWidthMax / global.ui_scale).toString() + "px; " + "font-size: " + newFontSizeRounded.toString() + "px;"; if(showText) this.labelText.set_text(currentCapacityText); diff --git a/battery@schorschii/files/battery@schorschii/metadata.json b/battery@schorschii/files/battery@schorschii/metadata.json index 53670665d..facbed367 100644 --- a/battery@schorschii/files/battery@schorschii/metadata.json +++ b/battery@schorschii/files/battery@schorschii/metadata.json @@ -2,6 +2,6 @@ "uuid": "battery@schorschii", "max-instances": "10", "description": "A battery desklet in iOS style with multi-battery support.", - "version": "2.8", + "version": "2.8.1", "name": "Battery Level Indicator" }