From 3462b4339547e6704ea504e43f75e329f88616dd Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 20 Apr 2019 10:15:59 -0700 Subject: [PATCH] Reduce space between graphic and text --- src/QmlControls/QGCCheckBox.qml | 2 ++ src/QmlControls/QGCRadioButton.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/QmlControls/QGCCheckBox.qml b/src/QmlControls/QGCCheckBox.qml index 5e334c6..af2dfa9 100644 --- a/src/QmlControls/QGCCheckBox.qml +++ b/src/QmlControls/QGCCheckBox.qml @@ -16,6 +16,8 @@ CheckBox { activeFocusOnPress: true style: CheckBoxStyle { + spacing: _noText ? 0 : ScreenTools.defaultFontPixelWidth * 0.25 + label: Item { implicitWidth: _noText ? 0 : text.implicitWidth + ScreenTools.defaultFontPixelWidth * 0.25 implicitHeight: _noText ? 0 : Math.max(text.implicitHeight, ScreenTools.checkBoxIndicatorSize) diff --git a/src/QmlControls/QGCRadioButton.qml b/src/QmlControls/QGCRadioButton.qml index 79792d3..6f28fde 100644 --- a/src/QmlControls/QGCRadioButton.qml +++ b/src/QmlControls/QGCRadioButton.qml @@ -17,7 +17,7 @@ RadioButton { activeFocusOnPress: true style: RadioButtonStyle { - spacing: _noText ? 0 : ScreenTools.defaultFontPixelWidth / 2 + spacing: _noText ? 0 : ScreenTools.defaultFontPixelWidth * 0.25 label: Item { implicitWidth: _noText ? 0 : text.implicitWidth + ScreenTools.defaultFontPixelWidth * 0.25