Bug 505847

Summary: Application Menu favourites icons misaligned - Oxygen theme
Product: [Plasma] Oxygen Reporter: Darryl <ddrs>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.4.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Oxygen theme, Application Menu favourites icons misaligned.

Description Darryl 2025-06-20 15:04:31 UTC
Created attachment 182426 [details]
Oxygen theme, Application Menu favourites icons misaligned.

SUMMARY
The icons in favourites are misaligned, slightly clipped off on the left side. 

STEPS TO REPRODUCE
1. Use Oxygen theme
2. Open Application Menu
3. 

OBSERVED RESULT
Icons are not centred and a bit of the left side of them are cut off. 
Screenshot is attached.

EXPECTED RESULT
Icons should be centred. 

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9700X 8-Core Processor
Graphics Processor: NVIDIA GeForce RTX 4070 Ti SUPER

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2025-11-11 17:12:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3289
Comment 2 Bug Janitor Service 2025-11-11 18:00:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3290
Comment 3 cwo 2025-11-14 09:07:26 UTC
Git commit 4a9e198a66a8a3d92eb4369c13d32154cdd25d93 by Christoph Wolk.
Committed on 14/11/2025 at 08:41.
Pushed by cwo into branch 'master'.

applets/kicker: explicitly set sidebar layout width

Some styles will break when the layout width is not explicitly set, and
push the sidebar buttons outside the frame (or even the applet itself,
cutting them off). This includes a small number of third-party styles
(possibly only Diamond), but also Oxygen. The issue seems to be somewhat
inconsistent, and in some cases only applies when starting Plasma, not
when switching to an affected theme from breeze.

We can just explicitly set it and center the sections, which resolves
the issue. The alignment is not quite optimal with Oxygen, but should at
least be less obviously bad.
Related: bug 511411

M  +4    -0    applets/kicker/MenuRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/4a9e198a66a8a3d92eb4369c13d32154cdd25d93
Comment 4 Bug Janitor Service 2025-11-14 10:28:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3301
Comment 5 cwo 2025-11-14 11:16:19 UTC
Git commit 9ef8a2a098c0fd13ea1fe78ed54d60418c44af8e by Christoph Wolk.
Committed on 14/11/2025 at 10:28.
Pushed by cwo into branch 'Plasma/6.5'.

applets/kicker: explicitly set sidebar layout width

Some styles will break when the layout width is not explicitly set, and
push the sidebar buttons outside the frame (or even the applet itself,
cutting them off). This includes a small number of third-party styles
(possibly only Diamond), but also Oxygen. The issue seems to be somewhat
inconsistent, and in some cases only applies when starting Plasma, not
when switching to an affected theme from breeze.

We can just explicitly set it and center the sections, which resolves
the issue. The alignment is not quite optimal with Oxygen, but should at
least be less obviously bad.
Related: bug 511411


(cherry picked from commit 4a9e198a66a8a3d92eb4369c13d32154cdd25d93)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +4    -0    applets/kicker/MenuRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/9ef8a2a098c0fd13ea1fe78ed54d60418c44af8e
Comment 6 cwo 2025-11-27 18:31:50 UTC
Git commit eac2784ad895ce9332c3659adf555c710f62ce32 by Christoph Wolk.
Committed on 27/11/2025 at 18:06.
Pushed by cwo into branch 'master'.

applets/kicker: use better sizing for sidebar

When the sidebar items were changed into toolbuttons to facilitate
keyboard accessibility, the sizing was intentionally cut rather close to
keep the spacings otherwise identical. This causes issues with some
Plasma styles, including Oxygen and Diamond, and causes the focus/hover
highlight to feel rather cramped in Breeze as it is very close to the
sidebar frame.

Instead of pre-calculating a size, we let the component's own sizing
bubble up so that the button width is always style-appropriate, use
the intended sidebar frame margins from the style as well, and add some
more explicit layouting instruction. This marginally increases the
sidebar size, but looks less cramped when items are highlighted, and
should resolves issues with some themes.
Related: bug 511411

M  +3    -1    applets/kicker/MenuRepresentation.qml
M  +2    -3    applets/kicker/SideBarItem.qml
M  +1    -1    applets/kicker/SideBarSection.qml

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