From d0740d605e5221409e7704053fbfaad5f9f358d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 18 Nov 2022 18:50:43 +0100 Subject: [PATCH] status/remoteAccess: Don't override existing style classes The indicator needs special styling for the color, but we still want it to pick shared 'system-status-icon' styling like the icon size. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6008 Part-of: --- js/ui/status/remoteAccess.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/ui/status/remoteAccess.js b/js/ui/status/remoteAccess.js index 43435ba48..1ed87931a 100644 --- a/js/ui/status/remoteAccess.js +++ b/js/ui/status/remoteAccess.js @@ -23,10 +23,8 @@ class RemoteAccessApplet extends SystemIndicator { this._handles = new Set(); this._indicator = this._addIndicator(); - this._indicator.set({ - style_class: 'screencast-indicator', - icon_name: 'media-record-symbolic', - }); + this._indicator.icon_name = 'media-record-symbolic'; + this._indicator.add_style_class_name('screencast-indicator'); controller.connect('new-handle', (o, handle) => { this._onNewHandle(handle);