Skip to content

Commit 4bf6975

Browse files
committed
disable tray icons resizing in gnome 44
fix #327, should be reported upstream
1 parent 89f269f commit 4bf6975

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

unite@hardpixel.eu/overrides/panel.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,20 @@ var ExtendLeftBox = class ExtendLeftBox extends Override.Injection {
9191
}
9292
}
9393

94+
var TrayIcons = class TrayIcons extends Override.Injection {
95+
get active() {
96+
return VERSION > 43
97+
}
98+
99+
_init() {
100+
this._append('activate', this._setIconSize)
101+
}
102+
103+
_setIconSize() {
104+
Object.defineProperty(this.indicators, 'size', { get: () => -1 })
105+
}
106+
}
107+
94108
var TitlebarActions = class TitlebarActions extends Override.Injection {
95109
get active() {
96110
return VERSION < 42

unite@hardpixel.eu/panel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ var DesktopName = class DesktopName extends Handlers.Feature {
405405
var TrayIcons = class TrayIcons extends Handlers.Feature {
406406
constructor() {
407407
super('show-legacy-tray', setting => setting == true)
408+
409+
Override.inject(this, 'panel', 'TrayIcons')
408410
}
409411

410412
activate() {

0 commit comments

Comments
 (0)