From 251afe3eaac3367c5c659dddc1e8854f833d5112 Mon Sep 17 00:00:00 2001 From: Michael Spencer Date: Fri, 29 Apr 2016 10:36:52 -0500 Subject: Material: Add proper elevation support - Added an ElevationEffect component based on elevation shadows from Angular Material - Use it on Button, ToolBar, ComboBox, Drawer, Pane, Popup, Menu, and Switch - Add an elevation property to the Material attached object - Update the button colors based on the elevation property Change-Id: I5152e1a56bdcb1016cc4f945a16ef510e0cdece6 Task-number: QTBUG-51276 Reviewed-by: Nikita Krupenko Reviewed-by: J-P Nurmi --- examples/quickcontrols2/gallery/gallery.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'examples/quickcontrols2/gallery/gallery.qml') diff --git a/examples/quickcontrols2/gallery/gallery.qml b/examples/quickcontrols2/gallery/gallery.qml index 3ca1d860..5ccd799c 100644 --- a/examples/quickcontrols2/gallery/gallery.qml +++ b/examples/quickcontrols2/gallery/gallery.qml @@ -264,6 +264,11 @@ ApplicationWindow { settings.style = styleBox.displayText settingsPopup.close() } + + Material.foreground: Material.primary + Material.background: "transparent" + Material.elevation: 0 + Layout.preferredWidth: 0 Layout.fillWidth: true } @@ -275,6 +280,10 @@ ApplicationWindow { styleBox.currentIndex = styleBox.styleIndex settingsPopup.close() } + + Material.background: "transparent" + Material.elevation: 0 + Layout.preferredWidth: 0 Layout.fillWidth: true } -- cgit v1.2.3