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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2547>
This commit is contained in:
Florian Müllner 2022-11-18 18:50:43 +01:00
parent a9e7dfe8fa
commit d0740d605e

View File

@ -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);