Bug 483333

Summary: Minimum width for Buttons with text causes slight "jumps" for kdeclarative/KeySequenceItem
Product: [Plasma] Breeze Reporter: ratijas <me>
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: nate, noahadvs, uhhadd
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: breeze - KeySequenceItem

Description ratijas 2024-03-12 12:16:19 UTC
SUMMARY

PushButton in Breeze expands horizontally to a certain minimum width, which is fine on its own, but causes slight jumps back and forth for dynamic items like a KeySequenceItem. The icon offsets left and right by ~3px in English locale with a default Noto font.

STEPS TO REPRODUCE
1. Open some applet's configuration window
2. Go to the Keyboard Shortcuts tab
3. Click on a key sequence button, press some modifier keys

OBSERVED RESULT
Icon jumps left and right

EXPECTED RESULT
Nope

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.5-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 ratijas 2024-03-12 12:31:37 UTC
Created attachment 167024 [details]
breeze - KeySequenceItem

```qml
import org.kde.kquickcontrols as KQuickControls
Window {
    KQuickControls.KeySequenceItem {}
}
```
Comment 2 Nate Graham 2024-03-13 21:56:51 UTC
Can reproduce, though I'm not sure this is really a Breeze bug. The minimum width makes some sense as an intentional design element; perhaps KeySequenceItem itself should be adjusted to not be so jumpy. What do you think?