From 3d6d026602cf9a6ccc35655347c2ed6267bbc49f Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 25 Apr 2016 08:41:40 +0200 Subject: Popup: separate modal and modeless background dimming iOS generally has white popups on white background, so it must dim the overlay background also for modeless popups to make them stand out. Make it possible to have modal and modeless background dimming separately, because both might be visible at the same time (eg. in Gallery settings). Change-Id: Id990675c8d06ceb8f8a26e6505d4bd020069f297 Reviewed-by: Mitch Curtis --- src/imports/controls/ApplicationWindow.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/imports/controls/ApplicationWindow.qml') diff --git a/src/imports/controls/ApplicationWindow.qml b/src/imports/controls/ApplicationWindow.qml index cc30c601..98de8946 100644 --- a/src/imports/controls/ApplicationWindow.qml +++ b/src/imports/controls/ApplicationWindow.qml @@ -43,7 +43,11 @@ T.ApplicationWindow { color: "#ffffff" - overlay.background: Rectangle { + overlay.modal: Rectangle { color: "#7f28282a" } + + overlay.modeless: Rectangle { + color: "#1f28282a" + } } -- cgit v1.2.3