Review Request 124047: Improve clock's tooltip layout
Martin Klapetek
martin.klapetek at gmail.com
Tue Jun 9 17:21:56 UTC 2015
> On June 8, 2015, 11:20 p.m., Kai Uwe Broulik wrote:
> > applets/digital-clock/package/contents/ui/DigitalClock.qml, line 452
> > <https://git.reviewboard.kde.org/r/124047/diff/1/?file=379315#file379315line452>
> >
> > I think you can clean this up a bit to not duplicate all those strings. Also, I don't think you should put all of this HTML formatting into the i18n, it lacks Qt.application.layoutDirection checks too.
> >
> > Something like
> > returnString += "<tr><%1 align='right'>%2</%1><%1>%3</%1></tr>".arg(isCurrent ? "th" : "td").arg(timezoneString).arg(Qt.formatTime(dateTime, main.timeFormat));
>
> Marco Martin wrote:
> what about instead of HTML implementing a different layout delefate instead? so that wouldbecome one single repeater and would perhaps be less tricky for translations
>
> Martin Klapetek wrote:
> Marco: I can try overriding the default tooltip if that's preferred
>
> Marco Martin wrote:
> To me is fine anyways if this string is ok for i18n people. i guess so since this kind of html is used elsewhere too, just look easy to screw up having it broken in translations
Yeah the string could definitly use some improvements, no doubt there.
Anywho, I've tried today to make a separate delegate but it's having all sorts of weird and, more importantly, random layouting issues, like this: http://paste.opensuse.org/view/raw/60528114 or this: http://paste.opensuse.org/view/raw/16933490 ...and these appear just randomly, there's no pattern that I can tell. I've pushed it to mklapetek/clockTooltip branch if anyone wants to have a look and possibly help out, look at Tooltip.qml.
- Martin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124047/#review81320
-----------------------------------------------------------
On June 8, 2015, 11:10 p.m., Martin Klapetek wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124047/
> -----------------------------------------------------------
>
> (Updated June 8, 2015, 11:10 p.m.)
>
>
> Review request for Plasma.
>
>
> Bugs: 348078
> https://bugs.kde.org/show_bug.cgi?id=348078
>
>
> Repository: plasma-workspace
>
>
> Description
> -------
>
> In kde4 times, the layout of clock's tooltip was nicely arranged using a table. Now it's a bit of a mess so this brings back the table.
>
> Also simplifies the timeForZone function which is used only for the tooltip.
>
>
> Diffs
> -----
>
> applets/digital-clock/package/contents/ui/DigitalClock.qml a142d33
> applets/digital-clock/package/contents/ui/main.qml e814056
>
> Diff: https://git.reviewboard.kde.org/r/124047/diff/
>
>
> Testing
> -------
>
> See screenshots.
>
>
> File Attachments
> ----------------
>
> Before
> https://git.reviewboard.kde.org/media/uploaded/files/2015/06/08/62594835-6bbb-436d-ba88-f39cb98b3033__clock-tooltip4.png
> After
> https://git.reviewboard.kde.org/media/uploaded/files/2015/06/08/fc93cc02-881b-4bca-96a5-e0356baf4e61__clock-tooltip3.png
>
>
> Thanks,
>
> Martin Klapetek
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150609/3e90c605/attachment.html>
More information about the Plasma-devel
mailing list