mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
ncolorchoice: fix default setting and indicator
This commit is contained in:
@@ -10,11 +10,11 @@ RowLayout {
|
||||
property string description: I18n.tr("common.select-color-description")
|
||||
property string tooltip: ""
|
||||
property string currentKey: ""
|
||||
property var defaultValue: "none"
|
||||
property var defaultValue: undefined
|
||||
property var noneColor: undefined // color declared as var so we can nullify
|
||||
property var noneOnColor: undefined // color declared as var so we can nullify
|
||||
|
||||
readonly property bool isValueChanged: currentKey !== defaultValue
|
||||
readonly property bool isValueChanged: (defaultValue !== undefined) && (currentKey !== defaultValue)
|
||||
readonly property string indicatorTooltip: {
|
||||
I18n.tr("panels.indicator.default-value", {
|
||||
"value": defaultValue === "" ? "(empty)" : String(defaultValue)
|
||||
|
||||
Reference in New Issue
Block a user