diff --git a/src/QmlControls/QGCCheckBox.qml b/src/QmlControls/QGCCheckBox.qml index 5e334c6beed4d21b5dc3f96b90ac82ff8b9b7411..af2dfa9ec9490b8c7d30739ea7ca5854d8d9b6e9 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 79792d386e99e27002a31f4806ddc9b391d36b3f..6f28fde99aae647127cfa69ffac46d1a5d5987b4 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