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

            Bug ID: 449115
           Summary: 24h clock with 9:59 is larger font than 10:00 in
                    vertical panel
           Product: plasmashell
           Version: 5.23.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Digital Clock
          Assignee: plasma-b...@kde.org
          Reporter: zrenf...@gmail.com
  Target Milestone: 1.0

https://old.reddit.com/r/kde/comments/sbuz5x/change_taskbar_clock_time_format/
https://i.imgur.com/mLoDtwa.png
https://i.imgur.com/P8inO1h.png

This can happen with en_US if the user selects 24-hour in digitalclock's
config. It can also be experienced by default in the Singapore locale.

For easy testing (note this is testing floating? not vertical):

    TZ="UTC-06:00" LC_TIME="en_SG.UTF-8" plasmawindowed
org.kde.plasma.digitalclock
    TZ="UTC-00:00" LC_TIME="en_SG.UTF-8" plasmawindowed
org.kde.plasma.digitalclock
    TZ="UTC+06:00" LC_TIME="en_SG.UTF-8" plasmawindowed
org.kde.plasma.digitalclock
    TZ="UTC+12:00" LC_TIME="en_SG.UTF-8" plasmawindowed
org.kde.plasma.digitalclock

https://invent.kde.org/plasma/plasma-workspace/-/blame/master/applets/digital-clock/package/contents/ui/DigitalClock.qml#L261

Looks like the vertical panels don't have enough space for 23:59 at... 10pt * 3
= 30pt

> fontSizeMode: Text.HorizontalFit
> font.pixelSize: 3 * PlasmaCore.Theme.defaultFont.pixelSize

The TZ env var doesn't seem to work with plasmoidviewer for some reason.

    TZ="UTC+05:00" LC_TIME="en_SG.UTF-8" plasmoidviewer -a
org.kde.plasma.digitalclock -l leftedge -f vertical

"12:59 PM" text needs a panel to be ~178px wide.
"23:59" text needs a panel to be ~96px wide.

A "Ubuntu Unity" vertical panel is usually around 64px wide.
A "Windows 10" vertical taskbar is 92px wide according to
https://www.youtube.com/watch?v=RA_szqXEJrU.

A horizontal panel defaults to what? 36px tall? There's probably 2px of padding
top/bottom.
https://invent.kde.org/plasma/plasma-desktop/-/blob/master/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js#L30

32px*0.71=22.7px Time
32px*0.56=17.9px Time (w/ Date)

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

Reply via email to