Commit b4bb1e97 authored by Alessandro Portale's avatar Alessandro Portale Committed by Thomas Hartmann
Browse files

QmlDesigner.StatesEditor: Themed borders



Use the typical theme color role for border.color in the state items and
"+" button.

Change-Id: Id87180deeff8c69da2bacf541484482a2cd4d380
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent bde4362d
...@@ -37,6 +37,7 @@ Rectangle { ...@@ -37,6 +37,7 @@ Rectangle {
property int delegateStateImageSize property int delegateStateImageSize
color: baseColor color: baseColor
border.color: creatorTheme.QmlDesignerBackgroundColorDarker
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
...@@ -117,7 +118,7 @@ Rectangle { ...@@ -117,7 +118,7 @@ Rectangle {
anchors.margins: -1 anchors.margins: -1
anchors.fill: stateImage anchors.fill: stateImage
border.width: 1 border.width: 1
border.color: "#000000" border.color: creatorTheme.QmlDesignerBackgroundColorDarker
} }
Image { Image {
id: stateImage id: stateImage
......
...@@ -111,6 +111,7 @@ FocusScope { ...@@ -111,6 +111,7 @@ FocusScope {
background: Rectangle { background: Rectangle {
property color buttonBaseColor: Qt.darker(creatorTheme.QmlDesignerBackgroundColorDarkAlternate, 1.1) property color buttonBaseColor: Qt.darker(creatorTheme.QmlDesignerBackgroundColorDarkAlternate, 1.1)
color: control.hovered ? Qt.lighter(buttonBaseColor, 1.2) : buttonBaseColor color: control.hovered ? Qt.lighter(buttonBaseColor, 1.2) : buttonBaseColor
border.color: creatorTheme.QmlDesignerBackgroundColorDarker
border.width: 1 border.width: 1
Image { Image {
source: "image://icons/plus" source: "image://icons/plus"
......
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