You are not logged in.

#1 2018-02-10 18:02:29

Potomac
Member
Registered: 2011-12-25
Posts: 526

[SOLVED][plasma] How to set the size of the font clock ?

Hello,

I use plasma 5, since the last update I notice that the font of the clock is a little smaller,

50efe2cf70b510a9edc10922ced215e4d8811309.png

do you know how can I set the size of this font ?

thanks

Last edited by Potomac (2018-02-11 20:28:34)

Offline

#2 2018-02-11 03:49:32

stolichniaskitnik
Member
Registered: 2017-09-29
Posts: 34

Re: [SOLVED][plasma] How to set the size of the font clock ?

You can check that.
Cheers!

Last edited by stolichniaskitnik (2018-02-16 10:11:41)

Offline

#3 2018-02-11 20:27:48

Potomac
Member
Registered: 2011-12-25
Posts: 526

Re: [SOLVED][plasma] How to set the size of the font clock ?

I found the solution, here is the patch :

--- a/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml	2018-02-05 14:02:40.000000000 +0100
+++ b/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml	2018-01-02 14:12:27.000000000 +0100
@@ -155,15 +155,7 @@
             PropertyChanges {
                 target: sizehelper
 
-                /*
-                 * The value 0.71 was picked by testing to give the clock the right
-                 * size (aligned with tray icons).
-                 * Value 0.56 seems to be chosen rather arbitrary as well such that
-                 * the time label is slightly larger than the date or timezone label
-                 * and still fits well into the panel with all the applied margins.
-                 */
-                height: Math.min(main.showDate || timezoneLabel.visible ? main.height * 0.56 : main.height * 0.71,
-                                 3 * theme.defaultFont.pixelSize)
+                height: Math.min(main.showDate || timezoneLabel.visible ?  0.56 * main.height : main.height, 3 * theme.defaultFont.pixelSize)
 
                 font.pixelSize: sizehelper.height
             }

then patch the file :

sudo patch /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml < digital_clock.patch

Offline

Board footer

Powered by FluxBB