Don't display dialog focus or content shadows on OSX

Alpha gradients display as fuchsia on OSX.
This commit is contained in:
David Rowe 2016-02-20 13:12:51 +13:00
parent 54b27f3ac3
commit 91e4fb478d
2 changed files with 6 additions and 1 deletions

View file

@ -60,7 +60,9 @@ Item {
height: width
x: -width / 4
y: -width / 4
visible: window && window.focus && pane.visible
// FIXME: Alpha gradients display as fuschia under QtQuick 2.5 on OSX.
// Check again when have a later version of QtQuick.
visible: window && window.focus && pane.visible && Qt.platform.os != "osx"
gradient: Gradient {
// GradientStop position 0.5 is at full circumference of circle that fits inside the square.
GradientStop { position: 0.0; color: "#ff000000" } // black, 100% opacity

View file

@ -136,6 +136,9 @@ Fadable {
}
LinearGradient {
// FIXME: Alpha gradients display as fuschia under QtQuick 2.5 on OSX.
// Check again when have a later version of QtQuick.
visible: Qt.platform.os != "osx"
anchors.top: contentBackground.bottom
anchors.left: contentBackground.left
width: contentBackground.width - 1