on xenial help sign in
Fix main view style
63c1baeFlorian Boucault
qml/Stages/MainViewStyle.qml+1−1
@@ -27,7 +27,7 @@ Item {
27 The background texture of the main view. The image will be drawn over the background color,
27 The background texture of the main view. The image will be drawn over the background color,
28 so if it has (semi-)transparent pixels, in those pixels the background color will be visible.
28 so if it has (semi-)transparent pixels, in those pixels the background color will be visible.
29 */
29 */
30− property url backgroundSource: "graphics/background_paper.png"
30+ property url backgroundSource: (ColorUtils.luminance(styledItem.backgroundColor) >= 0.85) ? "graphics/background_paper.png" : ""
31 property var theme
31 property var theme
32
32
33 Gradient {
33 Gradient {