Bug 430289

Summary: Timer widget uses dark font for Breeze dark
Product: [Plasma] kdeplasma-addons Reporter: postix <postix>
Component: timerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: nate, postix, random1123581321, timur
Priority: NOR    
Version: 5.20.4   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In: 5.26
Sentry Crash Report:
Attachments: Screenshot: The are 2 Timer-Widgets: Left w/o, right w/ title

Description postix 2020-12-12 09:40:56 UTC
Created attachment 134026 [details]
Screenshot: The are 2 Timer-Widgets: Left w/o, right w/ title

SUMMARY

On Breeze Dark the timer widget is hardly visible as it uses a dark font on the dark background.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2020-12-15 15:42:23 UTC
Ugh, hardcoded colors.
Comment 2 Nate Graham 2021-11-23 17:43:22 UTC
*** Bug 445909 has been marked as a duplicate of this bug. ***
Comment 3 Fushan Wen 2022-08-05 15:53:06 UTC
Git commit ba011368af76abc1abbacab1ccce8075e45a6ae1 by Fushan Wen.
Committed on 05/08/2022 at 15:19.
Pushed by ngraham into branch 'master'.

applets/timer: add compact representation

The compact representation has 5 layout forms:

1. inPanel, Horizontal: [Icon][Column to show the title and the
   remaining time]
2. inPanel, Vertical: [Column to show the title and the remaining time
   in seconds]
3. Desktop, width is enough to contain the icon and the remaining time
   in a row: [Icon][Column]
4. Desktop, width is not enough: [Icon]
                                 [Column]
5. Desktop, both width and height are not enough: [Icon]

The added compact representation also enables tab focus in the applet.
Related: bug 301861, bug 304923, bug 347492, bug 360996, bug 395182, bug 399930, bug 452701
FIXED-IN: 5.26

A  +200  -0    applets/timer/package/contents/ui/CompactRepresentation.qml     [License: GPL(v3.0+)]
M  +9    -2    applets/timer/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/ba011368af76abc1abbacab1ccce8075e45a6ae1