Bug 436248 - The username and the user picture are not vertically aligned at center
Summary: The username and the user picture are not vertically aligned at center
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (other bugs)
Version First Reported In: 5.21.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-27 03:09 UTC by Lua
Modified: 2021-04-28 23:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
alignment (41.05 KB, image/png)
2021-04-27 03:09 UTC, Lua
Details
this also happens in the default theme (breeze) (28.01 KB, image/png)
2021-04-27 03:20 UTC, Lua
Details
misalignment (70.81 KB, image/png)
2021-04-28 05:45 UTC, Lua
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lua 2021-04-27 03:09:02 UTC
Created attachment 137948 [details]
alignment

SUMMARY


STEPS TO REPRODUCE

OBSERVED RESULT
The username is aligned vertically at the center of the top panel in Kickoff.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Lua 2021-04-27 03:20:15 UTC
Created attachment 137950 [details]
this also happens in the default theme (breeze)
Comment 2 Nate Graham 2021-04-27 19:37:05 UTC
Your screenshots appear to show perfect alignment to me. Can you clarify the problem?
Comment 3 Lua 2021-04-28 05:45:31 UTC
Created attachment 137971 [details]
misalignment

Okay. I attached another screenshot
Comment 4 Nate Graham 2021-04-28 15:14:45 UTC
Ah you were talking about the label, not the icon.

We are already vertically centering the label, which means that any residual mis-alignment is going to be due to one or more of the following:
- Peculiarities of fonts (e.g. different descender heights making the bulk of the text look too high)
- Pixel mis-alignments caused by insufficient screen resolution or use of fractional scaling or forcing the font DPI to something non-standard
- Bugs in the Qt QML text layout engine

So I'm afraid there is nothing more we can do in KDE code, sorry.
Comment 5 Lua 2021-04-28 23:14:08 UTC
Is the username and the picture in the same panel? Because the username is aligned to the picture, but not to the panel. IDK why I filled this bug, it seems a superfluous change \=
Comment 6 Lua 2021-04-28 23:15:00 UTC
 Because the username is aligned to the picture, but not to the entire top panel*