Created attachment 152899 [details]
This occurs in many System Settings KCMs and Info Center App.
STEPS TO REPRODUCE
1. Open system settings
The names in the KCMs title is misaligned
The names should be aligned
Operating System: Arch Linux
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 5.15.73-3-lts (64-bit)
Graphics Platform: Wayland
This also occurs in the Info Center application
What font, font size, force font dpi, and global scaling settings are you using?
(In reply to Nate Graham from comment #1)
> What font, font size, force font dpi, and global scaling settings are you
I am using HarmonyOS Sans 10pt for Toolbar, Menu, Window Title and General.
No force DPI
Scale in Display Configuration is 75% at 1920x1080.
Does it happen with 10pt HarmonyOS at 100% scale?
Does it happen with 10pt Noto Sans at 75% scale?
(In reply to Nate Graham from comment #3)
> Does it happen with 10pt HarmonyOS at 100% scale?
> Does it happen with 10pt Noto Sans at 75% scale?
Yes (but with different KCMs) Some are correct and aligned, some are now off center.
What do you mean by off center? Can you attach a screenshot?
(In reply to Nate Graham from comment #5)
> What do you mean by off center? Can you attach a screenshot?
The title in the titlebar of some KCMs are misaligned and are much closer to the left edge
Attached are some examples
Created attachment 153202 [details]
This is a KCM that has proper alignment of title
Created attachment 153203 [details]
This is a KCM that has bad title alignment
Created attachment 153204 [details]
Bad title alignment
All are Noto Sans 10pt
Display at 100% scaling, 1920x1080 on Wayland
It seems like there are two ways that the title of the KCMs are being aligned one that is closer to the left edge and another that is further from the left edge. Look at the good KCM and bad KCM attachments.
The issue with KCMs having different left padding is something else, which is tracked elsewhere and already being worked on.
Let's focus on the bad vertical positioning in this bug report.
Git commit 40c97c954d5b39ba2888672a32090cc5b81eb921 by Ismael Asensio.
Committed on 27/10/2022 at 19:37.
Pushed by ngraham into branch 'master'.
KTitleWidget: Constraint the frame size so it properly aligns
Setting the layout constraint to `SetFixedSize` makes the frame
adapt to the labels size, fixing the wrong vertical alignment.
M +1 -0 src/ktitlewidget.cpp