diff --git a/applets/notes/package/contents/ui/configAppearance.qml b/applets/notes/package/contents/ui/configAppearance.qml --- a/applets/notes/package/contents/ui/configAppearance.qml +++ b/applets/notes/package/contents/ui/configAppearance.qml @@ -54,7 +54,7 @@ cacheBuffer: 2000 // sometimes GridView gets confused and layouts items *somewhere* cellWidth: Math.floor(notesView.viewport.width / 3) cellHeight: cellWidth - model: ["white", "black", "red", "orange", "yellow", "green", "blue", "pink", "translucent"] + model: ["white", "black", "red", "orange", "yellow", "green", "blue", "pink", "translucent", "translucent-light"] currentIndex: model.indexOf(cfg_color) onCurrentIndexChanged: cfg_color = model[currentIndex] @@ -105,12 +105,13 @@ case "blue": return i18n("A blue sticky note") case "pink": return i18n("A pink sticky note") case "translucent": return i18n("A translucent sticky note") + case "translucent-light": return i18n("A translucent sticky note with light text") } } //this is deliberately _NOT_ the theme color as we are over a known bright background //an unknown colour over a known colour is a bad move as you end up with white on yellow color: { - if (modelData === "black") { + if (modelData === "black" || modelData === "translucent-light") { return "#dfdfdf" } else { return "#202020" diff --git a/applets/notes/package/contents/ui/main.qml b/applets/notes/package/contents/ui/main.qml --- a/applets/notes/package/contents/ui/main.qml +++ b/applets/notes/package/contents/ui/main.qml @@ -174,7 +174,7 @@ style: PlasmaStyle.TextAreaStyle { //this is deliberately _NOT_ the theme color as we are over a known bright background //an unknown colour over a known colour is a bad move as you end up with white on yellow - textColor: plasmoid.configuration.color === "black" ? "#dfdfdf" : "#202020" + textColor: (plasmoid.configuration.color === "black" || plasmoid.configuration.color === "translucent-light") ? "#dfdfdf" : "#202020" } //update the note if the source changes, but only if the user isn't editing it currently @@ -302,6 +302,7 @@ plasmoid.setAction("change_note_color_blue", i18nc("@item:inmenu", "Blue")); plasmoid.setAction("change_note_color_pink", i18nc("@item:inmenu", "Pink")); plasmoid.setAction("change_note_color_translucent", i18nc("@item:inmenu", "Translucent")); + plasmoid.setAction("change_note_color_translucent-light", i18nc("@item:inmenu", "Translucent Light")); plasmoid.setActionSeparator("separator0"); //plasmoid configuration doesn't check before emitting change signal