Commit 8366bb16 authored by Alessandro Portale's avatar Alessandro Portale Committed by Tim Jenssen

QmlDesigner: Fix visibility of Origin control

Give the control the same border like all other controls. This improves
the visibility with the light theme.

Repeated 9 times. Needs to be made a component in master.

Change-Id: I11afa8c7ef628582c3d94fa8b42a27fb4f6e1368
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent d004203b
......@@ -32,7 +32,8 @@ Item {
property variant backendValue
property color borderColor: colorLogic.textColor
property color borderColorSelected: colorLogic.textColor
property color borderColor: creatorTheme.QmlDesignerBorderColor
property bool showTranslateCheckBox: true
......@@ -101,8 +102,8 @@ Item {
width: 15
height: 15
color: selected ? selectedColor : unselectedColor
border.color: originControl.borderColor
border.width: selected ? 2 : 0
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -116,8 +117,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -131,8 +132,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -146,8 +147,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -161,8 +162,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -176,8 +177,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -191,8 +192,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -206,8 +207,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......@@ -221,8 +222,8 @@ Item {
width: topLeft.width
height: topLeft.height
color: selected ? selectedColor : unselectedColor
border.width: selected ? 2 : 0
border.color: originControl.borderColor
border.width: selected ? 2 : 1
border.color: selected ? originControl.borderColorSelected : originControl.borderColor
MouseArea {
anchors.fill: parent
onClicked: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment