Bug 438347

Summary: Icons in popup are not aligned when applet names are multi-line strings
Product: [Plasma] plasmashell Reporter: Piotr Keplicz <keplicz>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: materka, nate
Priority: NOR    
Version: 5.22.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.24.3
Sentry Crash Report:
Attachments: Chaotic layout
Somewhat fixed in Gimp

Description Piotr Keplicz 2021-06-09 17:51:23 UTC
Created attachment 139156 [details]
Chaotic layout

SUMMARY

The icons and their labels in the "State and notifications" view of the system tray should assume common baseline for the icons so that their labels start at the same height.

The first attachment show how it looks like for the Polish language.

Also, longer words are wrapped, not clipped. If a word doesn't fit, it could be blended into background perhaps?


STEPS TO REPRODUCE
1. Open "State and notifications".
Comment 1 Piotr Keplicz 2021-06-09 17:52:04 UTC
Created attachment 139157 [details]
Somewhat fixed in Gimp
Comment 2 Nate Graham 2021-06-09 22:43:21 UTC
Can confirm.
Comment 3 Nate Graham 2022-03-04 00:54:44 UTC
Git commit 8fcdfc309fad296b73057d602817b9f595821ace by Nate Graham, on behalf of Michail Vourlakos.
Committed on 04/03/2022 at 00:54.
Pushed by ngraham into branch 'master'.

applets/systray: align applet labels with differing line counts in hidden view

Discover current minimum height of applet labels in hidden
view and apply it for all of them when they are shown
inside hidden applets view. This implementation provides
always only the maximum needed label height based on label
contents.
FIXED-IN: 5.24.3

M  +21   -0    applets/systemtray/package/contents/ui/HiddenItemsView.qml
M  +6    -0    applets/systemtray/package/contents/ui/items/AbstractItem.qml

https://invent.kde.org/plasma/plasma-workspace/commit/8fcdfc309fad296b73057d602817b9f595821ace
Comment 4 Nate Graham 2022-03-04 00:55:32 UTC
Git commit 5727362e3666f3d74c641665f5fb86b7d1434216 by Nate Graham, on behalf of Michail Vourlakos.
Committed on 04/03/2022 at 00:55.
Pushed by ngraham into branch 'Plasma/5.24'.

applets/systray: align applet labels with differing line counts in hidden view

Discover current minimum height of applet labels in hidden
view and apply it for all of them when they are shown
inside hidden applets view. This implementation provides
always only the maximum needed label height based on label
contents.
FIXED-IN: 5.24.3


(cherry picked from commit 8fcdfc309fad296b73057d602817b9f595821ace)

M  +21   -0    applets/systemtray/package/contents/ui/HiddenItemsView.qml
M  +6    -0    applets/systemtray/package/contents/ui/items/AbstractItem.qml

https://invent.kde.org/plasma/plasma-workspace/commit/5727362e3666f3d74c641665f5fb86b7d1434216