Summary: | Inconsistent and too large font used for time in digital clock plasmoid | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Peter Lewis <pete> |
Component: | Digital Clock | Assignee: | Martin Klapetek <mklapetek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | energumenoster, farcusnz, hessijames, nplatis, pete, plasma-bugs, rot26, subdiff, wulf.richartz |
Priority: | NOR | ||
Version: | 5.5.5 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/plasma-workspace/1d362c4ae2e264a80c002ab6718c1b1d9437c20c | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Screenshot illustrating the problem.
small font clock space to left clock too large font Screenshot showing the large date size |
Description
Peter Lewis
2016-03-04 11:23:22 UTC
Created attachment 97671 [details]
Screenshot illustrating the problem.
There is a patch at https://git.reviewboard.kde.org/r/127393/, which unifies the font used for the date and the time when the clock is shown in a narrow panel. But it will in most cases increase the font size of the date label. If having an option to scale the font size is important to you, you might want to create a feature request just for that. *** Bug 366140 has been marked as a duplicate of this bug. *** with the release of 5.7.95 (5.8 beta) this issue seems to have gone in the opposite direction with the digital clock plasmoid font now too small (and with too much space to the left of the clock. Font size can be increased in systemsettings but results in too large fonts elsewhere in plasma Created attachment 101266 [details]
small font clock
Created attachment 101267 [details]
space to left clock
Created attachment 101272 [details]
too large font
increasing tray width by just one pixel results in a large jump in font size to one that is now too big - but solves the wasted space to the left of the clock problem.
Created attachment 101464 [details] Screenshot showing the large date size In addition, in Plasma 5.8, the date seems to have a minimum font size that is too big (in previous versions the minimum font size for the date was indeed too small, and it could become unreadable). So, especially if you want to see the full date, you end up using too much space on the taskbar. Also, as it is apparent on the screenshot, the bottom few pixels of the date are cut off at this taskbar size. The screenshot also makes evident why one should be able to customize the date format on the clock (eg. I want to see the day of the week but I would prefer a shorter version), but that's probably on bug 278200... What comment 8 says and illustrates with a screenshot: the date font size is too big (and so is the time's, btw). Would it somehow be possible to have an option to select not just the font face, but also the font size for the time, and separately, for the date? Reason why you want them to be different: most frequently the user looks at the time, and if that is the shorter string, then it would make sense to allow it to take more space by increasing its font size relative to the date, which is only glanced at occasionally. On the other hand, some users may prefer to have a long time (with seconds) and only a short date, or no date at all. In this case, they may also prefer a smaller font size in order to save screen space (or bigger font size, if they have eyesight trouble). Take a look at my proposed ui cleanup: https://phabricator.kde.org/D3630 The screenshots there are slightly outdated, but if you are able to compile Plasma Workspace on your machine, you can try out the diff yourself. Git commit 1d362c4ae2e264a80c002ab6718c1b1d9437c20c by Roman Gilg. Committed on 03/01/2017 at 14:37. Pushed by romangilg into branch 'master'. [Digital Clock] Bug fixes and ui code optimization Summary: - Fixed timezone size and alignment in vertical mode - Instead of `Flow` use `Grid` for labels as it's simpler and gives better control over alignment - Seperator in small horizontal mode centered between date and time and in height now dependent on label size - Less empty space around time in small horizontal mode - Binding loop and initlializting anchor errors fixed - Elements now size completely down and have always the same ratio to each other with the time label being the largest - Round functions removed since they disrupted the resizing for small sizes - Introduce max font size values for text elements in panel mode Related: bug 367585, bug 373396 Reviewers: #plasma, mart Subscribers: mart, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D3630 M +206 -148 applets/digital-clock/package/contents/ui/DigitalClock.qml https://commits.kde.org/plasma-workspace/1d362c4ae2e264a80c002ab6718c1b1d9437c20c |