From ea30f0561d8dd46e3137e040a9f78e3bfb3fb46b Mon Sep 17 00:00:00 2001 From: Johan Smith Agudelo Rodriguez Date: Sun, 29 Jan 2017 16:34:36 -0500 Subject: [PATCH] align radio buttons --- .../configuration/AppearanceConfig.qml | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/shell/contents/configuration/AppearanceConfig.qml b/shell/contents/configuration/AppearanceConfig.qml index 0e3e049fd..206ec308d 100644 --- a/shell/contents/configuration/AppearanceConfig.qml +++ b/shell/contents/configuration/AppearanceConfig.qml @@ -330,7 +330,7 @@ PlasmaComponents.Page { //! BEGIN: Shadows - Column { + ColumnLayout { Layout.fillWidth: true spacing: units.smallSpacing @@ -340,27 +340,29 @@ PlasmaComponents.Page { RowLayout{ Layout.fillWidth: true + Layout.leftMargin: units.smallSpacing / 2 - Item{ - width: units.smallSpacing / 2 - } - - PlasmaComponents.ButtomRow { + RowLayout { Layout.fillWidth: true spacing: units.smallSpacing - exclusive: true property int shadows: plasmoid.configuration.shadows - onCheckedButtonChanged: { - if (checkedButton.checked) - plasmoid.configuration.shadows = checkedButton.shadow + ExclusiveGroup { + id: shadowsGroup + onCurrentChanged: { + if (current.checked) + plasmoid.configuration.shadows = current.shadow + } } PlasmaComponents.RadioButton { + Layout.fillWidth: true + text: i18n("None") checked: parent.shadows === shadow + exclusiveGroup: shadowsGroup readonly property int shadow: 0 } @@ -369,12 +371,16 @@ PlasmaComponents.Page { text: i18n("Locked") checked: parent.shadows === shadow + exclusiveGroup: shadowsGroup readonly property int shadow: 1 } PlasmaComponents.RadioButton { + Layout.fillWidth: true + text: i18n("All") checked: parent.shadows === shadow + exclusiveGroup: shadowsGroup readonly property int shadow: 2 }