Bug 483333 - Minimum width for Buttons with text causes slight "jumps" for kdeclarative/KeySequenceItem
Summary: Minimum width for Buttons with text causes slight "jumps" for kdeclarative/Ke...
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-12 12:16 UTC by ratijas
Modified: 2024-03-13 21:56 UTC (History)
3 users (show)

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


Attachments
breeze - KeySequenceItem (141.39 KB, image/gif)
2024-03-12 12:31 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
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?