diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-03-11 11:42:00 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-18 13:44:23 +0100 |
commit | 7fded5040f56b8def7a93fcce03f93f06bcc6bc4 (patch) | |
tree | 8e59c40a1152684141f4ad36003e36313d44bea1 /src/imports/dialogs/DefaultFileDialog.qml | |
parent | bb803baa360f24f9a01e1cb1652962476724dd2d (diff) |
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 <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/imports/dialogs/DefaultFileDialog.qml')
-rw-r--r-- | src/imports/dialogs/DefaultFileDialog.qml | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/imports/dialogs/DefaultFileDialog.qml b/src/imports/dialogs/DefaultFileDialog.qml index 9e05ace7b5..5542e59cb5 100644 --- a/src/imports/dialogs/DefaultFileDialog.qml +++ b/src/imports/dialogs/DefaultFileDialog.qml @@ -213,7 +213,7 @@ AbstractFileDialog { delegate: folderDelegate highlight: Rectangle { color: "transparent" - border.color: palette.midlight + border.color: Qt.darker(palette.window, 1.3) } highlightMoveDuration: 0 highlightMoveVelocity: -1 @@ -257,11 +257,10 @@ AbstractFileDialog { id: titleBar width: parent.width height: currentPathField.height * 1.5 - BorderImage { - source: "images/titlebar.sci" + Rectangle { anchors.fill: parent - anchors.topMargin: -7 - anchors.bottomMargin: -7 + color: Qt.darker(palette.window, 1.1) + border.color: Qt.darker(palette.window, 1.3) } Rectangle { id: upButton @@ -291,7 +290,7 @@ AbstractFileDialog { anchors.left: parent.left; anchors.right: parent.right; anchors.verticalCenter: parent.verticalCenter anchors.leftMargin: textX; anchors.rightMargin: 4 text: root.urlToPath(view.model.folder) - color: "white" + color: palette.text elide: Text.ElideLeft; horizontalAlignment: Text.AlignRight; verticalAlignment: Text.AlignVCenter MouseArea { anchors.fill: parent @@ -320,12 +319,8 @@ AbstractFileDialog { width: parent.width height: buttonRow.height + buttonRow.spacing * 2 anchors.bottom: parent.bottom - gradient: Gradient { - GradientStop { position: 0.0; color: palette.dark } - GradientStop { position: 0.3; color: palette.mid } - GradientStop { position: 0.85; color: palette.mid } - GradientStop { position: 1.0; color: palette.light } - } + color: Qt.darker(palette.window, 1.1) + border.color: Qt.darker(palette.window, 1.3) Row { id: buttonRow |