Skip to content

Commit fd2d207

Browse files
authored
Merge pull request #35 from alexankitty/beta
Make colorize option clearer. Fixes #20
2 parents b7fc0ba + 5813b27 commit fd2d207

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

contents/ui/ConfigAppearance.qml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,31 +76,46 @@ Kirigami.FormLayout {
7676
Kirigami.FormData.isSection: true
7777
}
7878

79-
CheckBox {
80-
id: buttonColorize
81-
text: i18n("Colorize buttons")
79+
ButtonGroup {
80+
id: colorizeButtonGroup
8281
}
8382

84-
RowLayout {
85-
Item { implicitWidth: Kirigami.Units.gridUnit }
86-
CheckBox {
87-
id: buttonColorizeInactive
88-
text: i18n("Colorize inactive buttons")
89-
}
83+
RadioButton {
84+
Kirigami.FormData.label: i18n("Button Colors:")
85+
checked: !buttonColorize.checked
86+
text: i18n("Using Plasma Style/Accent")
87+
ButtonGroup.group: colorizeButtonGroup
88+
}
89+
90+
RadioButton {
91+
id: buttonColorize
92+
checked: plasmoid.configuration.buttonColorize === true
93+
text: i18n("Using Color Overlay")
94+
ButtonGroup.group: colorizeButtonGroup
9095
}
9196

9297
CheckBox {
9398
enabled: buttonColorize.checked
9499
id: buttonColorizeDominant
95100
text: i18n("Use dominant icon color")
101+
visible: buttonColorize.checked
96102
}
97103

104+
105+
98106
KQControls.ColorButton {
99107
Layout.leftMargin: Kirigami.Units.GridUnit
100108
enabled: buttonColorize.checked & !buttonColorizeDominant.checked
101109
id: buttonColorizeCustom
102110
Kirigami.FormData.label: i18n("Custom Color:")
103111
showAlphaChannel: true
112+
visible: buttonColorize.checked && !buttonColorizeDominant.checked
113+
}
114+
115+
CheckBox {
116+
id: buttonColorizeInactive
117+
text: i18n("Colorize inactive buttons")
118+
visible: buttonColorize.checked
104119
}
105120

106121
Item {

0 commit comments

Comments
 (0)