Commit 8a4fcad9 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigenr.PropertyEditor: fixing styling of binding editor

Change-Id: Ia0ee9345a5cc1a8b5a9f9208306d91edb47ace35
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 82a54c28
......@@ -31,6 +31,8 @@
import QtQuick 2.1
import QtQuick.Controls 1.0 as Controls
import QtQuick.Window 2.0
import QtQuick.Controls.Styles 1.1
import "Constants.js" as Constants
Item {
width: 14
......@@ -131,8 +133,16 @@ Item {
parent: itemPane
visible: false
x: 10
color: "gray"
radius: 4
color: "#424242"
radius: 3
border.color: "black"
gradient: Gradient {
GradientStop {color: "#2c2c2c" ; position: 0}
GradientStop {color: "#343434" ; position: 0.15}
GradientStop {color: "#373737" ; position: 1.0}
}
id: expressionDialog
onVisibleChanged: {
......@@ -154,22 +164,64 @@ Item {
backendValue.expression = textField.text
expressionDialog.visible = false
}
style: TextFieldStyle {
textColor: Constants.colorsDefaultText
padding.top: 3
padding.bottom: 1
padding.left: 16
placeholderTextColor: "gray"
background: Rectangle {
implicitWidth: 100
implicitHeight: 23
radius: 3
gradient: Gradient {
GradientStop {color: "#2c2c2c" ; position: 0}
GradientStop {color: "#343434" ; position: 0.15}
GradientStop {color: "#373737" ; position: 1.0}
}
}
}
}
Row {
spacing: 6
Controls.Button {
text: "Apply"
iconSource: "images/apply.png"
spacing: 0
Button {
style: ButtonStyle {
background: Image {
source: "images/apply.png"
Rectangle {
opacity: control.pressed ? 0.5 : 0
anchors.fill: parent
gradient: Gradient {
GradientStop {color: "#606060" ; position: 0}
GradientStop {color: "#404040" ; position: 0.07}
GradientStop {color: "#303030" ; position: 1}
}
}
}
}
onClicked: {
backendValue.expression = textField.text
expressionDialog.visible = false
}
}
Controls.Button {
text: "Cancel"
iconSource: "images/cancel.png"
Button {
style: ButtonStyle {
background: Image {
source: "images/cancel.png"
Rectangle {
opacity: control.pressed ? 0.5 : 0
anchors.fill: parent
gradient: Gradient {
GradientStop {color: "#606060" ; position: 0}
GradientStop {color: "#404040" ; position: 0.07}
GradientStop {color: "#303030" ; position: 1}
}
}
}
}
onClicked: {
expressionDialog.visible = false
}
......
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