You are not logged in.
Hello,
I use plasma 5, since the last update I notice that the font of the clock is a little smaller,
do you know how can I set the size of this font ?
thanks
Last edited by Potomac (2018-02-11 20:28:34)
Offline
You can check that.
Cheers!
Last edited by stolichniaskitnik (2018-02-16 10:11:41)
Offline
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