From 4bf6975f144d8194e234167e2076ef513234c21f Mon Sep 17 00:00:00 2001 From: jonian Date: Sun, 7 May 2023 18:45:41 +0300 Subject: [PATCH] disable tray icons resizing in gnome 44 fix #327, should be reported upstream --- unite@hardpixel.eu/overrides/panel.js | 14 ++++++++++++++ unite@hardpixel.eu/panel.js | 2 ++ 2 files changed, 16 insertions(+) diff --git a/unite@hardpixel.eu/overrides/panel.js b/unite@hardpixel.eu/overrides/panel.js index 661c993..8bd15b9 100644 --- a/unite@hardpixel.eu/overrides/panel.js +++ b/unite@hardpixel.eu/overrides/panel.js @@ -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 diff --git a/unite@hardpixel.eu/panel.js b/unite@hardpixel.eu/panel.js index 29e4e1b..557ebed 100644 --- a/unite@hardpixel.eu/panel.js +++ b/unite@hardpixel.eu/panel.js @@ -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() {