~stolowski/unity-2d/hud-mouse-steals-focus-fix

« back to all changes in this revision

Viewing changes to shell/common/Background.qml

Compute the wallpaper average color and use it to colorize the launcher's, panel's and dash's background. Thanks to Florian Boucault. Fixes: https://bugs.launchpad.net/bugs/960194. Approved by Michał Sawicz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        anchors.rightMargin: rightBorderThickness
47
47
        clip: true
48
48
 
 
49
        /* Extra Item seemingly unnecessary but actually useful to avoid a
 
50
           redrawing bug that happens when applying an effect on a clipped item.
 
51
           In this particular case, doing the Colorize on the clipped child item
 
52
           would prevent proper repainting when maximizing then unmaximizing the
 
53
           dash.
 
54
        */
 
55
        effect: ColorizeEffect {
 
56
            color: unityConfiguration.averageBgColor
 
57
            saturation: 0.4
 
58
        }
49
59
        Image {
50
60
            id: blurredBackground
51
61
 
76
86
            anchors.fill: parent
77
87
            fillMode: Image.PreserveAspectCrop
78
88
            source: "artwork/background_sheen.png"
 
89
            opacity: 0.8
79
90
        }
80
91
    }
81
92