From 7fded5040f56b8def7a93fcce03f93f06bcc6bc4 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 11 Mar 2013 11:42:00 +0100 Subject: Cosmetic changes in DefaultFileDialog and dialog shared controls Implementation of the button for QML-based dialogs matches the one for QML examples. The button and the text field use system palette colors, as does the file dialog. Change-Id: Ibf45d57bdab8799ae6aa69ba543c0e05c55b01d3 Reviewed-by: Jens Bache-Wiig --- src/imports/dialogs/qml/TextField.qml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/imports/dialogs/qml/TextField.qml') diff --git a/src/imports/dialogs/qml/TextField.qml b/src/imports/dialogs/qml/TextField.qml index da93239fd5..89487e82ca 100644 --- a/src/imports/dialogs/qml/TextField.qml +++ b/src/imports/dialogs/qml/TextField.qml @@ -53,16 +53,9 @@ Item { Rectangle { id: rect anchors.fill: parent - anchors.leftMargin: -radius - border.color: palette.light radius: height / 4 - antialiasing: true - gradient: Gradient { - GradientStop { position: 0.0; color: palette.dark } - GradientStop { position: 0.2; color: palette.button } - GradientStop { position: 0.8; color: palette.button } - GradientStop { position: 1.0; color: palette.light } - } + color: palette.button + border.color: Qt.darker(palette.button, 1.5) } TextInput { -- cgit v1.2.3