Bug 461979

Summary: Activities plasmoid icon is misaligned on vertical panel
Product: [Plasma] plasmashell Reporter: Adam P <platkevic>
Component: Activity Switcher sidebarAssignee: veggero <niccolo.venerandi>
Status: RESOLVED FIXED    
Severity: minor CC: boban.joksimoski, ivan.cukic, nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: 5.26.3   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27
Sentry Crash Report:
Attachments: The Activities plasmoids icon with wrong dimensions and position in a vertical panel.

Description Adam P 2022-11-18 07:24:32 UTC
Created attachment 153854 [details]
The Activities plasmoids icon with wrong dimensions and position in a vertical panel.

SUMMARY
The Activities plasmoid (the one which only shows an icon and activity name and toggles the activity switcher on click) does not work well in vertical panels. The icon is too large and offset to the right (at least on a left panel). It looks fine on a horizontal panel.

STEPS TO REPRODUCE
1. Create a panel and drag it to the left edge.
2. Add an Activities widget.

OBSERVED RESULT
The icon is too large and offset to the right, see the attachment.

EXPECTED RESULT
The icon should be smaller and center aligned as all other elements are.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-1-MANJARO (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2023-01-09 21:36:21 UTC
*** Bug 463934 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2023-02-01 16:08:04 UTC
Git commit a033f5349394e7a59b33059bf880c33749413ebb by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 01/02/2023 at 16:07.
Pushed by ngraham into branch 'master'.

applets/showActivityManager: Fix icon alignment and size in vertical panels

Previous code assumed that the widget lives in a horizontal panel, taking the height as the
reference size for the icon and always trying to display the label; now, it scales depending
on what's smaller between height and width, and only displays the label in a horizontal panel.
FIXED-IN: 5.27

M  +3    -2    applets/showActivityManager/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/commit/a033f5349394e7a59b33059bf880c33749413ebb
Comment 3 Nate Graham 2023-02-01 16:08:41 UTC
Git commit cd681bd9fbe7831ce6e4a069b1a989cd222898ca by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 01/02/2023 at 16:08.
Pushed by ngraham into branch 'Plasma/5.27'.

applets/showActivityManager: Fix icon alignment and size in vertical panels

Previous code assumed that the widget lives in a horizontal panel, taking the height as the
reference size for the icon and always trying to display the label; now, it scales depending
on what's smaller between height and width, and only displays the label in a horizontal panel.
FIXED-IN: 5.27


(cherry picked from commit a033f5349394e7a59b33059bf880c33749413ebb)

M  +3    -2    applets/showActivityManager/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/commit/cd681bd9fbe7831ce6e4a069b1a989cd222898ca