Commit a12184ea authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.StatesEditor: Adjust margins

The "magic" -2 keeps the margins symmetric.
The states editor now nearly looks like the blog post proposal.
Only the highlight color is different, but already comes from the
theming engine.

Change-Id: Ibae5a3f19a7b07063ea44933498c24519bd34e94
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent 0f46ad9c
......@@ -105,12 +105,14 @@ Rectangle {
Item {
id: stateImageArea
anchors.topMargin: 1
anchors.topMargin: 4
anchors.left: stateNameField.left
anchors.top: stateNameField.bottom
height: delegateStateImageSize + 2
width: delegateStateImageSize + 2
visible: expanded
Rectangle {
anchors.margins: -1
anchors.fill: stateImage
......
......@@ -31,7 +31,7 @@ import "../common"
FocusScope {
id: root
height: expanded ? 136 : 32
height: expanded ? 136 : 30
signal createNewState
signal deleteState(int internalNodeId)
signal duplicateCurrentState
......@@ -39,7 +39,7 @@ FocusScope {
property int stateImageSize: 100
property int delegateWidth: stateImageSize + 10
property int padding: 2
property int delegateHeight: root.height - padding * 2
property int delegateHeight: root.height - padding * 2 + 1
property int innerSpacing: -1
property int currentStateInternalId : 0
......
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