Changeset View
Changeset View
Standalone View
Standalone View
applets/notes/package/contents/ui/configAppearance.qml
Context not available. | |||||
54 | cacheBuffer: 2000 // sometimes GridView gets confused and layouts items *somewhere* | 54 | cacheBuffer: 2000 // sometimes GridView gets confused and layouts items *somewhere* | ||
---|---|---|---|---|---|
55 | cellWidth: Math.floor(notesView.viewport.width / 3) | 55 | cellWidth: Math.floor(notesView.viewport.width / 3) | ||
56 | cellHeight: cellWidth | 56 | cellHeight: cellWidth | ||
57 | model: ["white", "black", "red", "orange", "yellow", "green", "blue", "pink", "translucent"] | 57 | model: ["white", "black", "red", "orange", "yellow", "green", "blue", "pink", "translucent", "translucent-light"] | ||
58 | currentIndex: model.indexOf(cfg_color) | 58 | currentIndex: model.indexOf(cfg_color) | ||
59 | onCurrentIndexChanged: cfg_color = model[currentIndex] | 59 | onCurrentIndexChanged: cfg_color = model[currentIndex] | ||
60 | 60 | | |||
Context not available. | |||||
105 | case "blue": return i18n("A blue sticky note") | 105 | case "blue": return i18n("A blue sticky note") | ||
106 | case "pink": return i18n("A pink sticky note") | 106 | case "pink": return i18n("A pink sticky note") | ||
107 | case "translucent": return i18n("A translucent sticky note") | 107 | case "translucent": return i18n("A translucent sticky note") | ||
108 | case "translucent-light": return i18n("A translucent sticky note with light text") | ||||
108 | } | 109 | } | ||
109 | } | 110 | } | ||
110 | //this is deliberately _NOT_ the theme color as we are over a known bright background | 111 | //this is deliberately _NOT_ the theme color as we are over a known bright background | ||
111 | //an unknown colour over a known colour is a bad move as you end up with white on yellow | 112 | //an unknown colour over a known colour is a bad move as you end up with white on yellow | ||
112 | color: { | 113 | color: { | ||
113 | if (modelData === "black") { | 114 | if (modelData === "black" || modelData === "translucent-light") { | ||
114 | return "#dfdfdf" | 115 | return "#dfdfdf" | ||
115 | } else { | 116 | } else { | ||
116 | return "#202020" | 117 | return "#202020" | ||
Context not available. |