From d5ddbce615756465f182726f0c2977e517fc45e1 Mon Sep 17 00:00:00 2001 From: Luis Bocanegra Date: Sun, 13 Oct 2024 10:51:45 -0600 Subject: [PATCH] feat: Update unified background settings labels refs: https://github.com/luisbocanegra/plasma-panel-colorizer/issues/89 --- package/contents/ui/components/WidgetCardUnifiedBg.qml | 10 +++------- package/contents/ui/configUnifiedBackground.qml | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/package/contents/ui/components/WidgetCardUnifiedBg.qml b/package/contents/ui/components/WidgetCardUnifiedBg.qml index cf5154b..4b0df17 100644 --- a/package/contents/ui/components/WidgetCardUnifiedBg.qml +++ b/package/contents/ui/components/WidgetCardUnifiedBg.qml @@ -7,7 +7,6 @@ Kirigami.AbstractCard { id: root property var widget signal updateWidget(unifyBgType: int) - checked: widget.unifyBgType !== 0 contentItem: RowLayout { Kirigami.Icon { @@ -51,31 +50,28 @@ Kirigami.AbstractCard { Layout.fillWidth: true } Button { - text: i18n("D") + text: i18n("Disable") checkable: true checked: widget?.unifyBgType === index icon.name: checked ? "checkmark-symbolic" : "dialog-close-symbolic" - Layout.preferredWidth: 50 property int index: 0 ButtonGroup.group: unifyButtonGroup enabled: widget?.unifyBgType !== 0 } Button { - text: i18n("S") + text: i18n("Start") checkable: true checked: widget?.unifyBgType === index icon.name: checked ? "checkmark-symbolic" : "dialog-close-symbolic" - Layout.preferredWidth: 50 property int index: 1 ButtonGroup.group: unifyButtonGroup } Button { - text: i18n("E") + text: i18n("End") checkable: true checked: widget?.unifyBgType === index icon.name: checked ? "checkmark-symbolic" : "dialog-close-symbolic" property int index: 2 - Layout.preferredWidth: 50 ButtonGroup.group: unifyButtonGroup } ButtonGroup { diff --git a/package/contents/ui/configUnifiedBackground.qml b/package/contents/ui/configUnifiedBackground.qml index 55fc5f1..843d253 100644 --- a/package/contents/ui/configUnifiedBackground.qml +++ b/package/contents/ui/configUnifiedBackground.qml @@ -96,7 +96,7 @@ KCM.SimpleKCM { Kirigami.FormLayout { Label { - text: i18n("[D]isable
[S]tart
[E]nd") + text: i18n("Select start and end of unified background areas, widgets between start and can be left Disabled.") opacity: 0.7 Layout.maximumWidth: widgetCards.width wrapMode: Text.Wrap