Skip to content

Commit

Permalink
appIcon: Allow customizing the showAppsIcon based on the session mode
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Apr 17, 2024
1 parent 5d417c0 commit e87767b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e87767b

Please sign in to comment.