| Summary: | Shorter date formats for vertical taskbar users. | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Sarah Gardner <kde-bugs> |
| Component: | Digital Clock widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | kde-bugs.9ek5t, kde, nate, pascal, thomas.pfeiffer |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | 5.7.2 | Flags: | kde:
Usability?
|
| Target Milestone: | 1.0 | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| URL: | http://lum.uk/temp/DigitalClock.png | ||
| Latest Commit: | https://cgit.kde.org/plasma-workspace.git/commit/?id=235fa8107dabb757d88cd1876309c12cad990207 | Version Fixed/Implemented In: | 5.15.0 |
| Sentry Crash Report: | |||
|
Description
Sarah Gardner
2016-07-22 21:25:37 UTC
Unfortunately Qt's date formatting options are rather limited and we have a ton of hacks in the clock because of that already. Letting Usability group decide whether it's worth the effort of adding such an option. Hacks are not good. Currently I see these options: 1.) We try to convince Qt to offer more options or maybe even provide our own patches 2.) We recommend users to use a different locale for date (e.g. the German one has DD.MM.YY) 3.) We create a custom locale for shorter dates In any case, we should work within Qt's locale system instead of doing custom hacks which will certainly break at some point *** Bug 362836 has been marked as a duplicate of this bug. *** This is not only useful for vertical taskbar users, more options for the date format would be very handy for horizontal panels, for example, show the date without the current year, as it is not useful, who doesn't know the current year.
Or a general option to allow a string specifying the format.[1]
Currently in my setup:
ISO: 2016-08-10
Short: 10/08/2016
Allowing the user to specify the date using those strings, which QML allows, one could have:
Monday
Wed
Sep 4
15 Jan
7 October
Wednesday 10 August
10-8
10 Aug
Right know, Plasma 5.7.3, one has to manually edit DigitalClock.qml and in function setupLabels(), inside if (main.showDate) For example:
--- /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml 2016-08-10 18:44:57.835617323 -0500
+++ /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml 2016-08-09 00:56:49.205248552 -0500
@@ -534,7 +534,8 @@
if (main.showDate) {
if (main.tooSmall) {
- dateLabelLeft.text = Qt.formatDate(main.currentTime, main.dateFormat);
+ dateLabelLeft.text = Qt.formatDate(main.currentTime, "dddd d MMMM");
} else {
dateLabel.text = Qt.formatDate(main.currentTime, main.dateFormat);
}
Instead of main.dateFormat, use string format.[1]
[1] http://doc.qt.io/qt-5/qml-qtqml-date.html#details
*** Bug 366409 has been marked as a duplicate of this bug. *** *** Bug 381548 has been marked as a duplicate of this bug. *** The date format is now fully customizable, so vertical panel users can do DD/MM/YY or DD/MM if desired. However the font size isn't quite big enough. That's tracked by Bug 404611. |