forked from Silverfish/proton-bridge
GODT-2145: Fix button spacing w/ Qt 6.4.
This commit is contained in:
@ -28,7 +28,7 @@ T.Button {
|
|||||||
property alias secondary: control.flat
|
property alias secondary: control.flat
|
||||||
readonly property bool primary: !secondary
|
readonly property bool primary: !secondary
|
||||||
readonly property bool isIcon: control.text === ""
|
readonly property bool isIcon: control.text === ""
|
||||||
|
readonly property bool hasTextAndIcon: (control.text !== "") && (iconImage.source.toString().length > 0)
|
||||||
property bool loading: false
|
property bool loading: false
|
||||||
|
|
||||||
property bool borderless: false
|
property bool borderless: false
|
||||||
@ -67,7 +67,7 @@ T.Button {
|
|||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
id: _contentItem
|
id: _contentItem
|
||||||
spacing: control.spacing
|
spacing: control.hasTextAndIcon ? control.spacing : 0
|
||||||
|
|
||||||
Proton.Label {
|
Proton.Label {
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
|
|||||||
Reference in New Issue
Block a user