Bug 457309

Summary: Keyboard layout text visually too low in comparison to system tray icons
Product: [Plasma] plasmashell Reporter: doncbugs
Component: Keyboard Layout widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: butirsky, nate
Priority: NOR    
Version First Reported In: 5.25.3   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: keyboard layout icon is not centered like other icons

Description doncbugs 2022-07-30 18:13:43 UTC
Created attachment 151004 [details]
keyboard layout icon is not centered like other icons

SUMMARY
The text to indicate which keyboard layout you are using sits at the baseline of Breeze icons in the system tray. This give it the appearance of being too low. Perhaps it could be more--centered?


STEPS TO REPRODUCE
1. Add a new keyboard layout from System Settings (Input Devices > Keyboard > Layouts) 
2. Observe System Tray, ideally with multiple other icons visible

OBSERVED RESULT
Text appears bottom-aligned and all other icons are taller

EXPECTED RESULT
Text may look better if vertically-aligned

ADDITIONAL INFORMATION
This may actually make it look worse, I am not sure.
Comment 1 Nate Graham 2022-08-01 16:35:35 UTC
Let's see
Comment 2 Nate Graham 2024-08-23 16:41:39 UTC
I investigated this while helping someone else out with a fix for Bug 491867, and found that it's not really fixable, unfortunately. The issue is that "us" has two letters that are short. A different string with any letters that are taller will look better.

Right now we align all the labels to the same baseline, which exaggerates the issue. But if we didn't do that and center-aligned them all instead, it would look weird for a different reason: because none of the labels would share a baseline while switching. It would be swapping out one issue for another.

So I think unfortunately there's nothing feasible we can do here, sorry.