Bug 428742

Summary: OSDs: Sound and Brightness progress labels not centered vertically
Product: [Plasma] plasmashell Reporter: medin <med.medin.2014>
Component: Theme - BreezeAssignee: visual-design
Status: RESOLVED FIXED    
Severity: minor CC: justin.zobel, nate, plasma-bugs
Priority: NOR    
Version First Reported In: 5.20.2   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.21
Sentry Crash Report:
Attachments: Sound and Brightness progress label not centered vertically
screenshot reddit video

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.