GNOME theme: shell theme and dock in Vapor colors, Ubuntu-style extensions, start on the desktop; never pick GNOME Classic

This commit is contained in:
theupriser committed 2026-10-14 14:22:58 +02:00
1 parent 12eb56220a
commit c7f5f515a3
10 files changed
+271 -7

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
// GNOME opens the overview after login; Ubuntu starts on the desktop. So does
// this (Steamify GNOME theme): the overview stays closed while the shell
// starts up, and is available again right after.
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js';
export default class SteamifyDesktopStart extends Extension {
enable() {
if (!Main.layoutManager._startingUp)
return;
this._hadOverview = Main.sessionMode.hasOverview;
Main.sessionMode.hasOverview = false;
this._startupId = Main.layoutManager.connect('startup-complete', () => {
Main.sessionMode.hasOverview = this._hadOverview;
Main.overview.hide();
});
}
disable() {
if (this._startupId) {
Main.layoutManager.disconnect(this._startupId);
this._startupId = null;
}
if (this._hadOverview !== undefined)
Main.sessionMode.hasOverview = this._hadOverview;
}
}