Bug 375966

Summary: Digital Clock font is too large
Product: [Plasma] plasmashell Reporter: xeuawszwe
Component: Digital ClockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: bastian.beischer, edithkeeler7, kde, rikmills, till2.schaefer, vasyl.demin, vilene
Priority: NOR    
Version: 5.9.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 1st - current, 2nd - what it should look like
what is should look like
digital clock on small panel
1920x1080
1366x768

Description xeuawszwe 2017-02-03 18:30:55 UTC
Created attachment 103792 [details]
1st - current, 2nd - what it should look like

After update to 5.9.0 it become way too big. It's big on my 1920x1080 machine, on another one with 1366x768 it just LARGE.
Comment 1 xeuawszwe 2017-02-03 18:35:15 UTC
sorry, can't add multiple screenshots in attachment, what it should look like is what is has been in 5.8.x releases: https://www.kde.org/announcements/plasma-5.8/plasma-5.8.png
please fix asap, my eyes are bleeding, thank you
Comment 2 Till Schäfer 2017-02-03 19:22:46 UTC
just add second attachment then.
Comment 3 xeuawszwe 2017-02-03 19:32:59 UTC
Created attachment 103794 [details]
what is should look like
Comment 4 Rik Mills 2017-02-03 19:35:16 UTC
Created attachment 103795 [details]
digital clock on small panel

I must agree that the new font sizing is pretty unsightly. Especially on small panel sizes where the padding is pretty much zero.
Comment 5 Till Schäfer 2017-02-03 19:40:53 UTC
Bug 375969: opposite case with date enabled
Comment 6 xeuawszwe 2017-02-03 19:44:58 UTC
Created attachment 103801 [details]
1920x1080
Comment 7 xeuawszwe 2017-02-03 19:46:24 UTC
Created attachment 103803 [details]
1366x768
Comment 8 Kai Uwe Broulik 2017-02-10 19:28:01 UTC
*** Bug 376307 has been marked as a duplicate of this bug. ***
Comment 9 xeuawszwe 2017-02-14 10:54:07 UTC
Well, after a couple of weeks I get used to it, so it doesn't seems so large now. It would be great if you add user the ability to scale them at his own in the future.
Comment 10 Christoph Feck 2017-02-17 02:49:21 UTC
What I do is edit DigitalClock.qml in /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/

There is a "states: [" section, and depending on which state applies to you (the "when:" condition), you can adjust the "font.pixelSize" properties of the different labels. My change looks like this:

            PropertyChanges {
                target: timeLabel

                height: sizehelper.height
                width: sizehelper.contentWidth

-                font.pixelSize: timeLabel.height
+                font.pixelSize: timeLabel.height * 0.7
            }

            PropertyChanges {
                target: timezoneLabel