From e87767b6e2737bb471291403be54d51f029421ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 17 Apr 2024 10:10:39 +0200 Subject: [PATCH] appIcon: Allow customizing the showAppsIcon based on the session mode --- appIcons.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appIcons.js b/appIcons.js index b71e3cacc..3c66c8e27 100644 --- a/appIcons.js +++ b/appIcons.js @@ -1364,6 +1364,14 @@ export const DockShowAppsIcon = GObject.registerClass({ this._menuTimeoutId = 0; } + _createIcon(size) { + this._iconActor = super._createIcon(size); + this._iconActor.fallbackIconName = this._iconActor.iconName; + this._iconActor.fallbackGicon = this._iconActor.gicon; + this._iconActor.iconName = `view-app-grid-${Main.sessionMode.currentMode}-symbolic`; + return this._iconActor; + } + vfunc_leave_event(...args) { return AppDisplay.AppIcon.prototype.vfunc_leave_event.call( this.toggleButton, ...args);