summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-07-25 16:10:13 +0200
committerThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-07-25 14:33:15 +0000
commit65f0b4b1c8d1082347b1bd52e6224a09f79c8ca6 (patch)
tree17793832c610605027097356b8b7bd22fe49933f /share
parent728b9147279ee71a000be71d7dd95334f50aa8ae (diff)
downloadqt-creator-65f0b4b1c8d1082347b1bd52e6224a09f79c8ca6.tar.gz
QmlDesigner: Theme binding text field
The text field for bindings was not properly themed, yet. We also use general Qt Creator icons for apply and cancel. Change-Id: I45f1220540a6eaeff05be0b99d8b70b64ca67af4 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml94
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/apply.pngbin514 -> 0 bytes
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/cancel.pngbin576 -> 0 bytes
3 files changed, 56 insertions, 38 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
index 0e795d190b..a3d14a710e 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
@@ -128,16 +128,7 @@ Item {
Rectangle {
parent: itemPane
visible: false
- x: 10
- 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}
- }
+ x: 6
id: expressionDialog
@@ -146,9 +137,14 @@ Item {
y = pos.y + 2;
}
- width: parent.width - 20
+ width: parent.width - 12
height: 120
+ radius: 2
+ color: creatorTheme.QmlDesignerBackgroundColorDarkAlternate
+ //border.color: creatorTheme.QmlDesignerBackgroundColorDarker
+ border.color: creatorTheme.QmlDesignerTabLight
+
Controls.TextField {
id: textField
anchors.fill: parent
@@ -162,20 +158,16 @@ Item {
}
style: TextFieldStyle {
- textColor: Constants.colorsDefaultText
+ textColor: creatorTheme.PanelTextColorLight
padding.top: 3
padding.bottom: 1
padding.left: 16
- placeholderTextColor: "gray"
+ placeholderTextColor: creatorTheme.PanelTextColorMid
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}
- }
+ radius: 2
+ color: creatorTheme.QmlDesignerBackgroundColorDarkAlternate
}
}
}
@@ -183,16 +175,29 @@ Item {
Row {
spacing: 0
Button {
+ width: 16
+ height: 16
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}
+ background: Item{
+ Image {
+ width: 16
+ height: 16
+ source: "image://icons/error"
+ opacity: {
+ if (control.pressed)
+ return 0.5;
+
+ if (control.hovered)
+ return 1.0;
+
+ return 0.9;
+ }
+ Rectangle {
+ z: -1
+ anchors.fill: parent
+ color: control.hovered? creatorTheme.FancyToolButtonSelectedColor : creatorTheme.BackgroundColorDark
+ border.color: creatorTheme.QmlDesignerBackgroundColorDarker
+ radius: 2
}
}
}
@@ -203,17 +208,29 @@ Item {
}
}
Button {
+ width: 16
+ height: 16
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}
+ background: Item {
+ Image {
+ width: 16
+ height: 16
+ source: "image://icons/ok"
+ opacity: {
+ if (control.pressed)
+ return 0.5;
+
+ if (control.hovered)
+ return 1.0;
+
+ return 0.9;
+ }
+ Rectangle {
+ z: -1
+ anchors.fill: parent
+ color: control.hovered? creatorTheme.FancyToolButtonSelectedColor : creatorTheme.BackgroundColorDark
+ border.color: creatorTheme.QmlDesignerBackgroundColorDarker
+ radius: 2
}
}
}
@@ -224,6 +241,7 @@ Item {
}
anchors.right: parent.right
anchors.bottom: parent.bottom
+ anchors.margins: 2
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/apply.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/apply.png
deleted file mode 100644
index 049398256b..0000000000
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/apply.png
+++ /dev/null
Binary files differ
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/cancel.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/cancel.png
deleted file mode 100644
index 0f2a8b1194..0000000000
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/cancel.png
+++ /dev/null
Binary files differ