on xenial help sign in
Saviq suggested darkening instead of half scaling/opacity
eb00131Albert Astals
qml/Shell.qml+8−8
@@ -170,13 +170,6 @@ FocusScope {
170 }
170 }
171 height: parent.height
171 height: parent.height
172
172
173− Rectangle {
174− width: underlay.width
175− height: underlay.height
176− color: "black"
177− opacity: dash.disappearingAnimationProgress
178− }
179−
180 Image {
173 Image {
181 anchors.fill: dash
174 anchors.fill: dash
182 source: shell.width > shell.height ? "Dash/graphics/paper_landscape.png" : "Dash/graphics/paper_portrait.png"
175 source: shell.width > shell.height ? "Dash/graphics/paper_landscape.png" : "Dash/graphics/paper_portrait.png"
@@ -211,7 +204,7 @@ FocusScope {
211 return greeter.showProgress;
204 return greeter.showProgress;
212 } else {
205 } else {
213 if (underlayClipper.clip)
206 if (underlayClipper.clip)
214− return stagesOuterContainer.showProgress * 0.5;
207+ return 0;
215 else
208 else
216 return stagesOuterContainer.showProgress;
209 return stagesOuterContainer.showProgress;
217 }
210 }
@@ -222,6 +215,13 @@ FocusScope {
222 Behavior on disappearingAnimationProgress { SmoothedAnimation { velocity: 5 }}
215 Behavior on disappearingAnimationProgress { SmoothedAnimation { velocity: 5 }}
223 }
216 }
224
217
218+ Rectangle {
219+ width: underlay.width
220+ height: underlay.height
221+ color: "black"
222+ opacity: stagesOuterContainer.showProgress * 0.5
223+ }
224+
225 AbstractButton {
225 AbstractButton {
226 enabled: stagesOuterContainer.showProgress == 1
226 enabled: stagesOuterContainer.showProgress == 1
227 anchors.fill: parent
227 anchors.fill: parent