Bug 511411 - The favorites icon not align to center
Summary: The favorites icon not align to center
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (other bugs)
Version First Reported In: 6.4.5
Platform: openSUSE Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-31 09:13 UTC by abby
Modified: 2025-11-14 20:53 UTC (History)
3 users (show)

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


Attachments
icon not align to center (99.43 KB, image/png)
2025-10-31 09:13 UTC, abby
Details
breeze (114.92 KB, image/png)
2025-11-01 00:59 UTC, abby
Details
diamond (263.22 KB, image/png)
2025-11-01 01:01 UTC, abby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abby 2025-10-31 09:13:40 UTC
Created attachment 186356 [details]
icon not align to center

SUMMARY
This has  been around for over half a year, see attachment

STEPS TO REPRODUCE

no special action is required, it appears after upgrade system (openSUSE Tumbleweed)

I've installed a new Tumbleweed in another machine, which has the same problem

OBSERVED RESULT

the favorites doesn't align to center

EXPECTED RESULT

the favorites icon is aligned to center

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: openSUSE Tumbleweed 20251013
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.1-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-10-31 18:34:41 UTC
Presumably it doesn't happen when using the Breeze Plasma style and icon theme, right?
Comment 2 abby 2025-11-01 00:59:48 UTC
Created attachment 186375 [details]
breeze
Comment 3 abby 2025-11-01 01:01:05 UTC
Created attachment 186376 [details]
diamond
Comment 4 abby 2025-11-01 01:08:46 UTC
(In reply to Nate Graham from comment #1)
> Presumably it doesn't happen when using the Breeze Plasma style and icon
> theme, right?

I can reproduce it using Breeze

step 1:  System Settings -> Global Theme ->Breeze -> then check "Desktop and window layout"
step 2: check application menu, see "breeze" attachment, its' also unaligned
step 3: logout & login
step 4: check application menu, it's aligned
step 5: change plasma style to "diamond" and check application menu, it's aligned too, see "diamond" attachment
step 6: logout & login
step 7: check application menu, it's unaligned again (plasma style is 'diamond')
step 8: change plasma style to "breeze", it's still unaligned (plasma style is 'breeze')
step 9: logout & login
step 10: check application menu, it's aligned (plasma style is 'breeze')

so I think "it doesn't happen when using the Breeze Plasma style "
Comment 5 cwo 2025-11-01 09:15:02 UTC
So it happens with breeze if you switch to it from diamond without restarting, but not if you restart (and then it stays correct)?

Which diamond theme is this, the one from store.kde.org? I tried installing that, but can't reproduce the error - the icons are centered..

Is the new Tumbleweed also using a fresh Plasma configuration, or does it reuse the old one?
Comment 6 abby 2025-11-01 12:15:00 UTC
(In reply to cwo from comment #5)
> So it happens with breeze if you switch to it from diamond without
> restarting, but not if you restart (and then it stays correct)?
> 
> Which diamond theme is this, the one from store.kde.org? I tried installing
> that, but can't reproduce the error - the icons are centered..
> 
> Is the new Tumbleweed also using a fresh Plasma configuration, or does it
> reuse the old one?

Yes, it happens with breeze after switch from diamond without restart
The diamond theme https://store.kde.org/p/1259546
The Tumbleweed is using a fresh plasma configuration, what I can remember is that after finish system installation, then installed the diamond theme without other modifications

by the way the diamond theme is too old, may be it not suitable for kde 6, but the problem is (the real bug?): 
1. if icon centered in breeze theme, then switch from breeze to diamond without restart, it also centered
2. if icon not centered in diamond theme, then from diamond to breeze without restart,  it also not centered
Comment 7 cwo 2025-11-01 21:38:22 UTC
(In reply to abby from comment #6)
> Yes, it happens with breeze after switch from diamond without restart
> The diamond theme https://store.kde.org/p/1259546

Yeah, that's the one I tried, and I can't reproduce it with current git master, nor with the default Fedora Plasma. The icons seem to be centered properly even if I restart with this theme, so I can't get to the failure state. (Looking at the code, I also don't obviously see how it could break this way, but that may just be me missing it).

You say that this issue has been around for over half a year. We did change the code for this sidebar here in 6.4 (to make it so that it can be used with the keyboard using arrow keys or Tab, before it was mouse-only) but that was 4 months ago. If it started then, this change might be related, but if not it may be caused by something else.

Do you happen to know if other themes cause the same issue for you? (More precisely, having broken alignment on these icons when you start Plasma with them).
Comment 8 abby 2025-11-02 01:59:02 UTC
(In reply to cwo from comment #7)
> (In reply to abby from comment #6)
> > Yes, it happens with breeze after switch from diamond without restart
> > The diamond theme https://store.kde.org/p/1259546
> 
> Yeah, that's the one I tried, and I can't reproduce it with current git
> master, nor with the default Fedora Plasma. The icons seem to be centered
> properly even if I restart with this theme, so I can't get to the failure
> state. (Looking at the code, I also don't obviously see how it could break
> this way, but that may just be me missing it).
> 
> You say that this issue has been around for over half a year. We did change
> the code for this sidebar here in 6.4 (to make it so that it can be used
> with the keyboard using arrow keys or Tab, before it was mouse-only) but
> that was 4 months ago. If it started then, this change might be related, but
> if not it may be caused by something else.
> 
> Do you happen to know if other themes cause the same issue for you? (More
> precisely, having broken alignment on these icons when you start Plasma with
> them).

Sorry for that misleading info. It's been a long time, it feels like more than half a year. I've tried another two themes (Gently and Blur-Glassy-Plasma), they don't cause this issue, but the oxygen6 theme also cause the issue (Tumbleweed on host machine ), I just installed openSUSE Leap 16 (virtalbox) and reproduced, and I record a video for that https://youtu.be/Wcv3MEWj6E8 starts from 4:30
Comment 9 Bug Janitor Service 2025-11-11 17:12:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3289
Comment 10 cwo 2025-11-14 09:07:34 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 505847

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/4a9e198a66a8a3d92eb4369c13d32154cdd25d93
Comment 11 cwo 2025-11-14 11:16:12 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 505847


(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