Skip to content

Commit d5b4057

Browse files
committed
feat: reword some settings and update icons
1 parent 3882199 commit d5b4057

8 files changed

+27
-18
lines changed

package/contents/ui/components/FormWidgetSettings.qml

+16-10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ColumnLayout {
1616
property bool handleString: false
1717
// key to extract config from
1818
property string keyName
19+
property string keyFriendlyName
1920
// internal config objects to be sent, both string and json
2021
property string configString: "{}"
2122
property var config: handleString ? JSON.parse(configString) : undefined
@@ -68,7 +69,7 @@ ColumnLayout {
6869
RowLayout {
6970
// Layout.alignment: Qt.AlignRight
7071
Label {
71-
text: i18n("Enable:")
72+
text: i18n("Enable") + " " + keyFriendlyName + " " + i18n("customization") + ":"
7273
}
7374
CheckBox {
7475
id: isEnabled
@@ -80,8 +81,7 @@ ColumnLayout {
8081
}
8182
}
8283
RowLayout {
83-
property bool isPanel: keyName === "panel"
84-
visible: isPanel
84+
visible: keyName === "panel"
8585
Label {
8686
text: i18n("Native panel background:")
8787
}
@@ -93,8 +93,14 @@ ColumnLayout {
9393
updateConfig()
9494
}
9595
}
96+
Kirigami.ContextualHelpButton {
97+
toolTipText: i18n("Disable to make panel fully transparent, removes contrast and blur effects.")
98+
}
99+
}
100+
RowLayout {
101+
visible: keyName === "panel"
96102
Label {
97-
text: i18n("Opacity:")
103+
text: i18n("Panel Opacity:")
98104
}
99105
SpinBoxDecimal {
100106
Layout.preferredWidth: backgroundRoot.Kirigami.Units.gridUnit * 5
@@ -108,7 +114,7 @@ ColumnLayout {
108114
enabled: nativePanelBackgroundCheckbox.checked
109115
}
110116
Kirigami.ContextualHelpButton {
111-
toolTipText: i18n("Disabling the native Panel background also removes the contrast and blur.\n\nSet Opacity to 0 to keep just the mask required by Blur custom background.")
117+
toolTipText: i18n("Set Opacity to 0 to keep just the mask required by Blur custom background.")
112118
}
113119
}
114120
RowLayout {
@@ -138,7 +144,7 @@ ColumnLayout {
138144
Kirigami.InlineMessage {
139145
id: warningResources
140146
Layout.fillWidth: true
141-
text: i18n("Draw a custom blur mask behind the custom background(s).\nRequires the C++ plugin to work, check the repository README on GitHub for details.\nNative panel background must be enabled with opacity of 0 for this to work as intended.")
147+
text: i18n("Draw a custom blur mask behind the custom background(s).<br>Requires the C++ plugin to work, check the repository README on GitHub for details.<br><strong>Native panel background must be enabled with opacity of 0 for this to work as intended.</strong>")
142148
visible: showBlurMessage
143149
actions: [
144150
Kirigami.Action {
@@ -166,25 +172,25 @@ ColumnLayout {
166172
}
167173
actions: [
168174
Kirigami.Action {
169-
icon.name: "globe"
175+
icon.name: "color-picker"
170176
text: "Color"
171177
checked: currentTab === 0
172178
onTriggered: currentTab = 0
173179
},
174180
Kirigami.Action {
175-
icon.name: "globe"
181+
icon.name: "rectangle-shape-symbolic"
176182
text: "Shape"
177183
checked: currentTab === 1
178184
onTriggered: currentTab = 1
179185
},
180186
Kirigami.Action {
181-
icon.name: "globe"
187+
icon.name: "bordertool-symbolic"
182188
text: "Border"
183189
checked: currentTab === 2
184190
onTriggered: currentTab = 2
185191
},
186192
Kirigami.Action {
187-
icon.name: "globe"
193+
icon.name: "kstars_horizon-symbolic"
188194
text: "Shadow"
189195
checked: currentTab === 3
190196
onTriggered: currentTab = 3

package/contents/ui/components/WidgetCardCheck.qml

+3-6
Original file line numberDiff line numberDiff line change
@@ -52,36 +52,33 @@ Kirigami.AbstractCard {
5252
}
5353
Button {
5454
id: maskCheckbox
55-
text: i18n("M")
55+
text: i18n("Mask")
5656
checkable: true
5757
checked: widget.method.mask ?? false
5858
icon.name: checked ? "checkmark-symbolic" : "dialog-close-symbolic"
5959
onCheckedChanged: {
6060
updateWidget(maskCheckbox.checked, effectCheckbox.checked, reloadCheckbox.checked)
6161
}
62-
Layout.preferredWidth: 50
6362
}
6463
Button {
6564
id: effectCheckbox
66-
text: i18n("E")
65+
text: i18n("Effect")
6766
checkable: true
6867
checked: widget.method.multiEffect ?? false
6968
icon.name: checked ? "checkmark-symbolic" : "dialog-close-symbolic"
7069
onCheckedChanged: {
7170
updateWidget(maskCheckbox.checked, effectCheckbox.checked, reloadCheckbox.checked)
7271
}
73-
Layout.preferredWidth: 50
7472
}
7573
Button {
7674
id: reloadCheckbox
77-
text: i18n("R")
75+
text: i18n("Refresh")
7876
checkable: true
7977
checked: widget.reload ?? false
8078
icon.name: checked ? "checkmark-symbolic" : "dialog-close-symbolic"
8179
onCheckedChanged: {
8280
updateWidget(maskCheckbox.checked, effectCheckbox.checked, reloadCheckbox.checked)
8381
}
84-
Layout.preferredWidth: 50
8582
}
8683
}
8784
}

package/contents/ui/configForeground.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ KCM.SimpleKCM {
147147
Kirigami.FormLayout {
148148

149149
Label {
150-
text: i18n("<strong>[M]ask</strong>: Force Icon colorization (symbolic icons).<br><strong>[E]ffect</strong>: Force Text/Icons colorization using post-processing effect (any icon).<br><strong>[R]efresh</strong>: Re-apply colorization at a fixed interval, for widgets that recreate or recolor content themselves<br>To restore the <strong>Mask<strong> and <strong>Color Effect</strong> disable and restart Plasma or logout.")
150+
text: i18n("<strong>Mask</strong>: Force Icon colorization (symbolic icons).<br><strong>Color Effect</strong>: Force Text/Icons colorization using post-processing effect (any icon).<br><strong>Refresh</strong>: Re-apply colorization at a fixed interval, for widgets that recreate or recolor content themselves<br>To restore the <strong>Mask<strong> and <strong>Color Effect</strong> disable and restart Plasma or logout.")
151151
opacity: 0.7
152152
Layout.maximumWidth: widgetCards.width
153153
wrapMode: Text.Wrap

package/contents/ui/configGlobal.qml

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ KCM.SimpleKCM {
9595
item.currentTab = root.currentTab
9696
item.handleString = true
9797
item.keyName = targetComponent.currentValue
98+
item.keyFriendlyName = targetComponent.currentText
9899
item.followVisbility = root.followVisbility[targetComponent.currentValue]
99100
item.tabChanged.connect((currentTab) => {
100101
root.currentTab = currentTab

package/contents/ui/configPresetWidgetOverrides.qml

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ KCM.SimpleKCM {
194194
root.updateConfig()
195195
})
196196
item.currentTab = root.currentTab
197+
item.keyName = "widgets"
198+
item.keyFriendlyName = "Widgets"
197199
item.tabChanged.connect((currentTab) => {
198200
root.currentTab = currentTab
199201
})

package/contents/ui/configPresets.qml

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ KCM.SimpleKCM {
269269

270270
Button {
271271
id: loadBtn
272+
icon.name: "dialog-ok-apply-symbolic"
272273
text: i18n("Load")
273274
Layout.preferredHeight: saveBtn.height
274275
onClicked: {

package/contents/ui/configUnifiedBackground.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ KCM.SimpleKCM {
9696
Kirigami.FormLayout {
9797

9898
Label {
99-
text: i18n("Select start and end of unified background areas, widgets between start and must be left Disabled.")
99+
text: i18n("Select start and end of unified background areas, widgets between <b>Start</b> and <b>End</b> must be left Disabled.")
100100
opacity: 0.7
101101
Layout.maximumWidth: widgetCards.width
102102
wrapMode: Text.Wrap

package/contents/ui/configUserWidgetOverrides.qml

+2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ KCM.SimpleKCM {
241241
root.updateConfig()
242242
})
243243
item.currentTab = root.currentTab
244+
item.keyName = "widgets"
245+
item.keyFriendlyName = "Widgets"
244246
item.tabChanged.connect((currentTab) => {
245247
root.currentTab = currentTab
246248
})

0 commit comments

Comments
 (0)