Changeset View
Changeset View
Standalone View
Standalone View
src/QuickEditor/EditorRoot.qml
Show All 23 Lines | |||||
24 | 24 | | |||
25 | Item { | 25 | Item { | ||
26 | id: editorRoot; | 26 | id: editorRoot; | ||
27 | objectName: "editorRoot"; | 27 | objectName: "editorRoot"; | ||
28 | 28 | | |||
29 | // properties and setters | 29 | // properties and setters | ||
30 | 30 | | |||
31 | property var selection: undefined; | 31 | property var selection: undefined; | ||
32 | property color maskColour: Qt.rgba(0, 0, 0, 0.15); | 32 | property color maskColour: Qt.rgba(0, 0, 0, 0.15); | ||
broulik: Note that these are overwritten from C++ in `QuickEditor.cpp` in case light selection… | |||||
33 | property color strokeColour: Qt.rgba(0.114, 0.6, 0.953, 1); | 33 | property color strokeColour: systemPalette.highlight; | ||
34 | property color crossColour: Qt.rgba(0.114, 0.6, 0.953, 0.5); | 34 | property color crossColour: Qt.rgba(strokeColour.r, strokeColour.g, strokeColour.b, 0.7); | ||
35 | property color labelBackgroundColour: Qt.rgba(systemPalette.light.r, systemPalette.light.g, systemPalette.light.b, 0.85); | ||||
35 | property bool showMagnifier: false; | 36 | property bool showMagnifier: false; | ||
36 | property bool toggleMagnifier: false; | 37 | property bool toggleMagnifier: false; | ||
37 | property int magZoom: 5; | 38 | property int magZoom: 5; | ||
38 | property int magPixels: 16; | 39 | property int magPixels: 16; | ||
39 | property int magOffset: 32; | 40 | property int magOffset: 32; | ||
40 | 41 | | |||
41 | SystemPalette { | 42 | SystemPalette { | ||
42 | id: systemPalette; | 43 | id: systemPalette; | ||
▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 111 | Canvas { | |||
251 | 252 | | |||
252 | Rectangle { | 253 | Rectangle { | ||
253 | id: midHelpText; | 254 | id: midHelpText; | ||
254 | objectName: "midHelpText"; | 255 | objectName: "midHelpText"; | ||
255 | 256 | | |||
256 | height: midHelpTextElement.height + 40; | 257 | height: midHelpTextElement.height + 40; | ||
257 | width: midHelpTextElement.width + 40; | 258 | width: midHelpTextElement.width + 40; | ||
258 | radius: 4; | 259 | radius: 4; | ||
259 | border.color: Qt.rgba(0, 0, 0, 1); | 260 | border.color: systemPalette.windowText; | ||
260 | color: Qt.rgba(1, 1, 1, 0.85); | 261 | color: labelBackgroundColour; | ||
261 | 262 | | |||
262 | visible: false; | 263 | visible: false; | ||
263 | anchors.centerIn: parent; | 264 | anchors.centerIn: parent; | ||
264 | 265 | | |||
265 | Label { | 266 | Label { | ||
266 | id: midHelpTextElement; | 267 | id: midHelpTextElement; | ||
267 | text: i18n("Click anywhere to start drawing a selection rectangle,\n" + | 268 | text: i18n("Click anywhere to start drawing a selection rectangle,\n" + | ||
268 | "or press Esc to cancel."); | 269 | "or press Esc to cancel."); | ||
269 | font.pixelSize: Qt.application.font.pixelSize * 1.2; | 270 | font.pixelSize: Qt.application.font.pixelSize * 1.2; | ||
270 | 271 | | |||
271 | anchors.centerIn: parent; | 272 | anchors.centerIn: parent; | ||
272 | } | 273 | } | ||
273 | } | 274 | } | ||
274 | 275 | | |||
275 | Rectangle { | 276 | Rectangle { | ||
276 | id: bottomHelpText; | 277 | id: bottomHelpText; | ||
277 | objectName: "bottomHelpText"; | 278 | objectName: "bottomHelpText"; | ||
278 | 279 | | |||
279 | height: bottomHelpTextElement.height + 20; | 280 | height: bottomHelpTextElement.height + 20; | ||
280 | width: bottomHelpTextElement.width + 20; | 281 | width: bottomHelpTextElement.width + 20; | ||
281 | radius: 4; | 282 | radius: 4; | ||
282 | border.color: Qt.rgba(0, 0, 0, 1); | 283 | border.color: systemPalette.windowText; | ||
283 | color: Qt.rgba(1, 1, 1, 0.85); | 284 | color: labelBackgroundColour; | ||
284 | 285 | | |||
285 | visible: false; | 286 | visible: false; | ||
286 | anchors.bottom: parent.bottom; | 287 | anchors.bottom: parent.bottom; | ||
287 | anchors.horizontalCenter: parent.horizontalCenter; | 288 | anchors.horizontalCenter: parent.horizontalCenter; | ||
288 | 289 | | |||
289 | GridLayout { | 290 | GridLayout { | ||
290 | id: bottomHelpTextElement; | 291 | id: bottomHelpTextElement; | ||
291 | columns: 2 | 292 | columns: 2 | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |
Note that these are overwritten from C++ in QuickEditor.cpp in case light selection background option is enabled