Browse Source

Reduce space between graphic and text

QGC4.4
Don Gagne 6 years ago
parent
commit
3462b43395
  1. 2
      src/QmlControls/QGCCheckBox.qml
  2. 2
      src/QmlControls/QGCRadioButton.qml

2
src/QmlControls/QGCCheckBox.qml

@ -16,6 +16,8 @@ CheckBox { @@ -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)

2
src/QmlControls/QGCRadioButton.qml

@ -17,7 +17,7 @@ RadioButton { @@ -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

Loading…
Cancel
Save