https://bugs.kde.org/show_bug.cgi?id=521348

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kdeplasma-addons/-/commi
                   |                            |t/94a96775723ab2f374e87c523
                   |                            |9cfbc209b86b889
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #8 from cwo <[email protected]> ---
Git commit 94a96775723ab2f374e87c5239cfbc209b86b889 by Christoph Wolk.
Committed on 23/11/2026 at 21:47.
Pushed by cwo into branch 'master'.

applets/timer: rework fullRepresentation

Timer's fullRepresentation has several issues. The sizing and
positioning of the things is quite complex, as we want to make the time
display (if enabled) as large as we can fit. Everything ends up top/
left-aligned, so resizing the widget often does nothing if the number
section's optimal size does not change. (The only thing that's not
aligned this way is the optional progress bar, which always hugs the
very bottom if enabled - also quite ugly).

Instead, we rework the precise sizing and layouting, and simplify
TimerEdit (which is now no longer used in the config dialog, and can be
streamlined). The new layout places the time display centered if it is
the only thing, centers the title if enabled horizontally, and
apportions the space to multiple components in a somewhat reasonable way
(generally 1:3:1). This makes changing the size of the
fullRepresentation always lead to some visual change, and places the
progress bar (if enabled) at least a little more pleasantly.

We also adjust the popup version of the fullRepresentation to always
include the time. It makes sense to have the option to not show that in
the compactRepresentation, especially on a vertical panel or if
space-constrained, but then just repeating this in the popup makes the
popup itself mostly useless (it would show only the title, or progress
bar, or possibly even nothing at all!).
Related: bug 459475, bug 488937

M  +98   -120  applets/timer/TimerEdit.qml
M  +42   -30   applets/timer/TimerView.qml
M  +1    -1    applets/timer/configGeneral.qml
M  +3    -4    applets/timer/main.qml

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to