From 048c3a900c4baf954ddb687d1b47fd7fd1cd2a11 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Wed, 25 Jan 2023 17:35:21 +0100 Subject: [PATCH] GODT-2145: Fix button spacing w/ Qt 6.4. --- internal/frontend/bridge-gui/bridge-gui/qml/Proton/Button.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/Proton/Button.qml b/internal/frontend/bridge-gui/bridge-gui/qml/Proton/Button.qml index 31ec058f..34f7c2e9 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/Proton/Button.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/Proton/Button.qml @@ -28,7 +28,7 @@ T.Button { property alias secondary: control.flat readonly property bool primary: !secondary readonly property bool isIcon: control.text === "" - + readonly property bool hasTextAndIcon: (control.text !== "") && (iconImage.source.toString().length > 0) property bool loading: false property bool borderless: false @@ -67,7 +67,7 @@ T.Button { contentItem: RowLayout { id: _contentItem - spacing: control.spacing + spacing: control.hasTextAndIcon ? control.spacing : 0 Proton.Label { colorScheme: root.colorScheme