Skip to content

Commit

Permalink
disable tray icons resizing in gnome 44
Browse files Browse the repository at this point in the history
fix #327, should be reported upstream
  • Loading branch information
jonian committed May 7, 2023
1 parent 89f269f commit 4bf6975
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions [email protected]/overrides/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ var ExtendLeftBox = class ExtendLeftBox extends Override.Injection {
}
}

var TrayIcons = class TrayIcons extends Override.Injection {
get active() {
return VERSION > 43
}

_init() {
this._append('activate', this._setIconSize)
}

_setIconSize() {
Object.defineProperty(this.indicators, 'size', { get: () => -1 })
}
}

var TitlebarActions = class TitlebarActions extends Override.Injection {
get active() {
return VERSION < 42
Expand Down
2 changes: 2 additions & 0 deletions [email protected]/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ var DesktopName = class DesktopName extends Handlers.Feature {
var TrayIcons = class TrayIcons extends Handlers.Feature {
constructor() {
super('show-legacy-tray', setting => setting == true)

Override.inject(this, 'panel', 'TrayIcons')
}

activate() {
Expand Down

0 comments on commit 4bf6975

Please sign in to comment.