Bug 395182 - Timer widget looks too small when docked into a panel
Summary: Timer widget looks too small when docked into a panel
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: timer (show other bugs)
Version: 5.20.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-09 17:06 UTC by Adel Q
Modified: 2022-08-05 15:53 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.26


Attachments
Screenshot of small timer on left from Plasma Shell 5.12.5 (92.99 KB, image/png)
2018-06-09 17:06 UTC, Adel Q
Details
Screenshot: The are 2 Timer-Widgets: Left w/o, right w/ title (55.90 KB, image/png)
2020-12-12 09:48 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adel Q 2018-06-09 17:06:28 UTC
Created attachment 113174 [details]
Screenshot of small timer on left from Plasma Shell 5.12.5

The font size for the timer when placed in a panel is extremely small due to vertical padding in the widget. 

Reproducible: Always

Steps to reproduce:
1. Add the timer widget to a panel. Font size is extremely small due to padding.

Expected result:
The font of the timer should be readable and roughly fit the height of the panel, like the Digital Clock widget.

A similar bug was reported in plasma4, but in plasmashell this bug is reproducible without needing a reboot: https://bugs.kde.org/show_bug.cgi?id=321507


Distro: Arch Linux (up to date)
Qt Version: 5.11.0
KDE Plasma Version: 5.12.5
KDE Frameworks Version: 5.46.0
Comment 1 apache 2018-10-16 07:24:00 UTC
It affects me. Plasma 5.13.5 Manjaro Qt 5.11.2, Frameworks Version: 5.50.0

There is a topic about it on KDE forum
https://forum.kde.org/viewtopic.php?f=67&t=137743&p=406016#p406016
I followed the fix there and this worked.

Also spacers need to be added on both sides of Timer because otherwise it covers other widgets on panel.
Comment 2 postix 2020-12-12 09:48:06 UTC
Created attachment 134027 [details]
Screenshot: The are 2 Timer-Widgets: Left w/o, right w/ title

SUMMARY

The timer widget is extremely small, although even crowded, there'd be enough space to display it a readable size.

Panel height in the screenshot is 26. I added a 2nd timer as I first could not find the first timer I had placed. 
As I still could not see it, I right clicked and checked "show title" in the settings. 
The title is shown in the correct size but with the wrong font color. However, there's no time displayed for the 2nd timer w/ title now.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.11-3-MANJARO


ADDITIONAL INFORMATION
Scaling: 2.0
Comment 3 Timur Tabi 2021-04-19 17:02:11 UTC
Another problem with the Timer widget is that if you a specify a title, that title is displayed in large letters that overwrite the widget and encroaches on the neighboring widgets.
Comment 4 apache 2022-05-20 10:43:25 UTC
It is still valid bug on 
Operating System: Manjaro Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.15.38-1-MANJARO (64-bit)
Graphics Platform: X11
Graphics Processor: NVA8

Can anything be finally done about it? At least a workaround. How is it possible that other widgets like calendar or Focus display digits in proper size but timer cannot?

I use old version of Timer with these workaround
https://forum.kde.org/viewtopic.php?f=67&t=137743

and it still displays numbers correctly and for dark theme as a temporary workaround I copied timer.svgz from /usr/share/plasma/desktoptheme/oxygen/widgets/ to /usr/share/plasma/desktoptheme/default/widgets/
to make it visible on dark theme. I use AlphaBlack Control widget to color panel.

Can you tell what to do to make it not be overwritten when Plasma update comes? Should I copy something to:
/home/user/.local/share/plasma/desktoptheme/
But what? Entire "default" folder from /usr/share/plasma/desktoptheme/
? 
In what folder should I place timer.svgz in /home/user/.local/share/plasma/ so that the widget in user home can display it?
Comment 5 Andrew 2022-05-26 15:18:21 UTC
Agree, no visibility on dark theme is another real problem, together with small size of timer digits.
Comment 6 Fushan Wen 2022-08-05 15:53:16 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 399930, bug 430289, 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