Skip to content

Commit

Permalink
feat: Update unified background settings labels
Browse files Browse the repository at this point in the history
refs: #89
  • Loading branch information
luisbocanegra committed Oct 13, 2024
1 parent 34f8828 commit d5ddbce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions package/contents/ui/components/WidgetCardUnifiedBg.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Kirigami.AbstractCard {
id: root
property var widget
signal updateWidget(unifyBgType: int)
checked: widget.unifyBgType !== 0

contentItem: RowLayout {
Kirigami.Icon {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion package/contents/ui/configUnifiedBackground.qml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ KCM.SimpleKCM {
Kirigami.FormLayout {

Label {
text: i18n("<strong>[D]isable</strong><br><strong>[S]tart</strong><br><strong>[E]nd</strong>")
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
Expand Down

0 comments on commit d5ddbce

Please sign in to comment.