mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-14 15:44:47 +02:00
GNOME theme: one Steamify Vapor extension carries the shell colors; no gnome-shell-extensions bundle; dock shape left to the user
This commit is contained in:
1 parent
79048338bf
commit
ce1aa1bf7d
5 files changed
+32
-33
No files matched your search
@@ -0,0 +1,28 @@
|
||||
// Steamify Vapor (Steamify GNOME theme). Its stylesheet.css, which GNOME Shell loads
|
||||
// by itself, is the SteamOS look. This code: GNOME opens the overview after login;
|
||||
// Ubuntu starts on the desktop. So does this: 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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user