diff options
author | Antti Sinnemaa <antti.sinnemaa@nokia.com> | 2012-01-24 17:34:14 +0200 |
---|---|---|
committer | Antti Sinnemaa <antti.sinnemaa@nokia.com> | 2012-01-24 17:34:14 +0200 |
commit | 863394ec6a8f8aaa155378ac3c13061d35be17d5 (patch) | |
tree | e21be14447dcab143574a4c3663b1c7c3b932714 /tests | |
parent | e170553a7956948b035e8532f3ae15b9d4d540dc (diff) |
Background color selection update
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/testbed/BGColorPicker.qml | 64 | ||||
-rw-r--r-- | tests/manual/testbed/images/color_selection_hl.png | bin | 161 -> 533 bytes | |||
-rw-r--r-- | tests/manual/testbed/images/color_selection_mask.png | bin | 0 -> 231 bytes |
3 files changed, 44 insertions, 20 deletions
diff --git a/tests/manual/testbed/BGColorPicker.qml b/tests/manual/testbed/BGColorPicker.qml index 10caac8..5fdc0a5 100644 --- a/tests/manual/testbed/BGColorPicker.qml +++ b/tests/manual/testbed/BGColorPicker.qml @@ -45,64 +45,88 @@ Label { property color color: "#242424" caption: "Background color" - Image { - id: highlight - source: "images/color_selection_hl.png" - width: 14 - height: 14 - x: initial.x - (highlight.width - initial.width) * 0.5 - y: selection.y - (highlight.height - selection.height) * 0.5 - } - Row { id: selection + x: -3 y: 3 - spacing: 8 - Rectangle { width: 12; height: 12; color: "#ffffff" + spacing: 4 + Rectangle { width: 16; height: 16; color: "#ffffff" + Image { + anchors.centerIn: parent + source: "images/color_selection_mask.png" + } MouseArea { anchors.fill: parent + anchors.margins: -3 onClicked: { bgColorPicker.color = parent.color - highlight.x = parent.x - (highlight.width - parent.width) * 0.5 + highlight.x = parent.x - 3 } } } - Rectangle { width: 12; height: 12; color: "#ababab" + Rectangle { width: 16; height: 16; color: "#ababab" + Image { + anchors.centerIn: parent + source: "images/color_selection_mask.png" + } MouseArea { anchors.fill: parent + anchors.margins: -3 onClicked: { bgColorPicker.color = parent.color - highlight.x = parent.x - (highlight.width - parent.width) * 0.5 + highlight.x = parent.x - 3 } } } - Rectangle { id: initial; width: 12; height: 12; color: "#242424" + Rectangle { id: initial; width: 16; height: 16; color: "#242424" + Image { + anchors.centerIn: parent + source: "images/color_selection_mask.png" + } MouseArea { anchors.fill: parent + anchors.margins: -3 onClicked: { bgColorPicker.color = parent.color - highlight.x = parent.x - (highlight.width - parent.width) * 0.5 + highlight.x = parent.x - 3 } } } - Rectangle { width: 12; height: 12; color: "#000000" + Rectangle { width: 16; height: 16; color: "#000000" + Image { + anchors.centerIn: parent + source: "images/color_selection_mask.png" + } MouseArea { anchors.fill: parent + anchors.margins: -3 onClicked: { bgColorPicker.color = parent.color - highlight.x = parent.x - (highlight.width - parent.width) * 0.5 + highlight.x = parent.x - 3 } } } Image { source: "images/background.png" - width: 12; height: 12; + width: 16; height: 16; + Image { + anchors.centerIn: parent + source: "images/color_selection_mask.png" + } MouseArea { anchors.fill: parent + anchors.margins: -3 onClicked: { bgColorPicker.color = "#010101" - highlight.x = parent.x - (highlight.width - parent.width) * 0.5 + highlight.x = parent.x - 3 } } } } + + Image { + id: highlight + source: "images/color_selection_hl.png" + x: initial.x - (highlight.width - initial.width) * 0.5 + y: selection.y - (highlight.height - selection.height) * 0.5 + } } diff --git a/tests/manual/testbed/images/color_selection_hl.png b/tests/manual/testbed/images/color_selection_hl.png Binary files differindex 87de70b..eeb9181 100644 --- a/tests/manual/testbed/images/color_selection_hl.png +++ b/tests/manual/testbed/images/color_selection_hl.png diff --git a/tests/manual/testbed/images/color_selection_mask.png b/tests/manual/testbed/images/color_selection_mask.png Binary files differnew file mode 100644 index 0000000..9a7e8f8 --- /dev/null +++ b/tests/manual/testbed/images/color_selection_mask.png |