Overview: dim the background with the dim-factor property
Doing this rather than overdrawing a black rectangle saves us (pixels in screen) * 8 bytes of memory bandwidth for every frame we draw going into the overview. It also allows us to dim the background on non-primary monitors making the overall overview appearance consistent across all monitors. https://bugzilla.gnome.org/show_bug.cgi?id=656433
This commit is contained in:
@ -603,6 +603,12 @@ Overview.prototype = {
|
||||
onCompleteScope: this
|
||||
});
|
||||
|
||||
Tweener.addTween(this._background,
|
||||
{ dim_factor: 0.4,
|
||||
time: ANIMATION_TIME,
|
||||
transition: 'easeOutQuad'
|
||||
});
|
||||
|
||||
this._coverPane.raise_top();
|
||||
this._coverPane.show();
|
||||
this.emit('showing');
|
||||
@ -733,6 +739,12 @@ Overview.prototype = {
|
||||
onCompleteScope: this
|
||||
});
|
||||
|
||||
Tweener.addTween(this._background,
|
||||
{ dim_factor: 1.0,
|
||||
time: ANIMATION_TIME,
|
||||
transition: 'easeOutQuad'
|
||||
});
|
||||
|
||||
this._coverPane.raise_top();
|
||||
this._coverPane.show();
|
||||
this.emit('hiding');
|
||||
|
Reference in New Issue
Block a user