overview: Don't show black panel on startup
The back → transparent transition gives it a very bad look when booting and running the startup animation. Use the same transition duration hack to ensure that the panel starts completely transparent. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1678>
This commit is contained in:
parent
72505227b7
commit
9bce2a02be
@ -652,6 +652,8 @@ var Overview = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
runStartupAnimation(callback) {
|
runStartupAnimation(callback) {
|
||||||
|
Main.panel.style = 'transition-duration: 0ms;';
|
||||||
|
|
||||||
this._shown = true;
|
this._shown = true;
|
||||||
this._visible = true;
|
this._visible = true;
|
||||||
this._visibleTarget = true;
|
this._visibleTarget = true;
|
||||||
@ -663,6 +665,7 @@ var Overview = class {
|
|||||||
this.emit('showing');
|
this.emit('showing');
|
||||||
|
|
||||||
this._overview.runStartupAnimation(() => {
|
this._overview.runStartupAnimation(() => {
|
||||||
|
Main.panel.style = null;
|
||||||
this.emit('shown');
|
this.emit('shown');
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user