aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/Drawer.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-15 18:24:15 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-16 16:57:38 +0000
commit2b81cdd40cdd265a50f91b4775cf5638b987d69f (patch)
treeb269b1aaa57a21b0ea10d34b4135e50c5d261ec0 /src/imports/controls/Drawer.qml
parent9a65b10e827b9bb09911feb9bd06ed10312463fc (diff)
Make Drawers use the overlay background dimming
Change-Id: I6ec68983b06918d60acc2d60164d70cac0e37fac Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/Drawer.qml')
-rw-r--r--src/imports/controls/Drawer.qml8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/imports/controls/Drawer.qml b/src/imports/controls/Drawer.qml
index 2b50b7d4..eb4e3e57 100644
--- a/src/imports/controls/Drawer.qml
+++ b/src/imports/controls/Drawer.qml
@@ -40,16 +40,10 @@ import Qt.labs.templates 1.0 as T
T.Drawer {
id: control
+ parent: T.ApplicationWindow.overlay
width: parent ? parent.width : 0 // TODO: Window.width
height: parent ? parent.height : 0 // TODO: Window.height
- //! [background]
- background: Rectangle {
- color: "#28282a"
- opacity: position * 0.75
- }
- //! [background]
-
// TODO: make this a proper transition
animation: SmoothedAnimation {
velocity: 5