Review Request 127102: Use fixed width for digital clock applet
Marco Martin
notmart at gmail.com
Thu Feb 18 11:11:21 UTC 2016
> On Feb. 17, 2016, 11:59 p.m., David Edmundson wrote:
> > Is this needed after: https://git.reviewboard.kde.org/r/127073/ ?
probably
- Marco
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127102/#review92513
-----------------------------------------------------------
On Feb. 17, 2016, 4:23 p.m., Daniel Faust wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127102/
> -----------------------------------------------------------
>
> (Updated Feb. 17, 2016, 4:23 p.m.)
>
>
> Review request for kde-workspace and Plasma.
>
>
> Bugs: 347724
> https://bugs.kde.org/show_bug.cgi?id=347724
>
>
> Repository: plasma-workspace
>
>
> Description
> -------
>
> Currently the width of the date label is not fixed but changes depending on the text. This causes the entire applet to change its width (if the time is the widest displayed item). This in turn can cause all other applets in the same panel to move whenever the displayed time changes.
>
> This patch uses FontMetrics to iterate over all possible time strings (with different width) and chooses the widest of them as reference for the fixed width of the time label.
>
> This way the width of the applet stays the same (unless the date is displayed and changes). The text remains centered though, which means that it can still move within the applet when the time changes.
>
>
> Diffs
> -----
>
> applets/digital-clock/package/contents/ui/DigitalClock.qml 95bb071
>
> Diff: https://git.reviewboard.kde.org/r/127102/diff/
>
>
> Testing
> -------
>
> Works with horizontal and vertical panel.
> Also displaying different combinations of "seconds", "date" and "timezone" works.
>
>
> Thanks,
>
> Daniel Faust
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160218/b659e04a/attachment.html>
More information about the Plasma-devel
mailing list