Bug 428742 - OSDs: Sound and Brightness progress labels not centered vertically
Summary: OSDs: Sound and Brightness progress labels not centered vertically
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Theme - Breeze (other bugs)
Version First Reported In: 5.20.2
Platform: Manjaro Linux
: NOR minor
Target Milestone: 1.0
Assignee: visual-design
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-05 20:07 UTC by medin
Modified: 2020-11-09 21:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21
Sentry Crash Report:


Attachments
Sound and Brightness progress label not centered vertically (17.34 KB, image/png)
2020-11-05 20:07 UTC, medin
Details
screenshot reddit video (136.69 KB, image/png)
2020-11-06 16:33 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2020-11-05 20:07:53 UTC
Created attachment 133064 [details]
Sound and Brightness progress label not centered vertically

The text label that shows the percentage in sound and brightness osd notifications is not vertically aligned with icon and progress bar. See attached image for more info.

Operating System: Manjaro Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.4.74-1-MANJARO
OS Type: 64-bit
Comment 1 Nate Graham 2020-11-05 22:02:24 UTC
Huh, it looks perfectly centered for me, but I have a hidpi 4k screen at 200%. I wonder if this is one of those virtually unfixable pixel alignment issues...
Comment 2 Justin Zobel 2020-11-06 09:21:31 UTC
Looks fine to me on a 1080p 24" screen.
Comment 3 medin 2020-11-06 10:05:17 UTC
I have an old laptop with lcd screen with low resolution 1366:768, I think I'm too much meticulous person :)
Comment 4 Nate Graham 2020-11-06 15:11:25 UTC
What font and font size are you using, and have you set a scale factor or are you using the force Font DPI feature?
Comment 5 medin 2020-11-06 16:19:52 UTC
(In reply to Nate Graham from comment #4)
> What font and font size are you using, and have you set a scale factor or
> are you using the force Font DPI feature?

I use Noto Sans 9pt, Global Scale is not modified and set to 100% and Force font DPI is disabled.
Comment 6 medin 2020-11-06 16:30:59 UTC
Here's another screenshot from a video posted on reddit
https://www.reddit.com/r/kde/comments/jp4in8/kde_tip_a_new_way_to_change_the_volume/
Comment 7 medin 2020-11-06 16:33:22 UTC
Created attachment 133092 [details]
screenshot reddit video
Comment 8 Nate Graham 2020-11-09 21:45:44 UTC
Git commit b693f482e7f18da8dee534f6909478f5b3051367 by Nate Graham.
Committed on 09/11/2020 at 21:44.
Pushed by ngraham into branch 'master'.

[OSD] Vertically center all items in the layout
FIXED-IN: 5.21

M  +4    -0    lookandfeel/contents/osd/OsdItem.qml

https://invent.kde.org/plasma/plasma-workspace/commit/b693f482e7f18da8dee534f6909478f5b3051367
Comment 9 Nate Graham 2020-11-09 21:47:09 UTC
Hopefully that fixes it for you, but if it doesn't, then there's not much more we can do since the issue would be caused by either the metrics of your font, or the way Qt pixel-aligns items for your screen's pixel density.