From ac2ed286e12c781d3ebf8982426d3b71cbaef9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 26 Jan 2021 16:58:30 +0100 Subject: [PATCH] extensions: Remove arrows from top bar menus ... following the corresponding gnome-shell change. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3567 Part-of: --- extensions/apps-menu/extension.js | 6 +----- extensions/drive-menu/extension.js | 7 ++----- extensions/places-menu/extension.js | 5 +---- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js index 9d465060..6376b524 100644 --- a/extensions/apps-menu/extension.js +++ b/extensions/apps-menu/extension.js @@ -363,17 +363,13 @@ class ApplicationsButton extends PanelMenu.Button { // role ATK_ROLE_MENU like other elements of the panel. this.accessible_role = Atk.Role.LABEL; - let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); - this._label = new St.Label({ text: _('Applications'), y_expand: true, y_align: Clutter.ActorAlign.CENTER, }); - hbox.add_child(this._label); - hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM)); - this.add_actor(hbox); + this.add_actor(this._label); this.name = 'panelApplications'; this.label_actor = this._label; diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js index e5160662..d7757f3b 100644 --- a/extensions/drive-menu/extension.js +++ b/extensions/drive-menu/extension.js @@ -127,15 +127,12 @@ class DriveMenu extends PanelMenu.Button { _init() { super._init(0.0, _('Removable devices')); - let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); let icon = new St.Icon({ icon_name: 'media-eject-symbolic', - style_class: 'system-status-icon', + style_class: 'system-status-icon single-indicator', }); - hbox.add_child(icon); - hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM)); - this.add_child(hbox); + this.add_child(icon); this._monitor = Gio.VolumeMonitor.get(); this._addedId = this._monitor.connect('mount-added', (monitor, mount) => { diff --git a/extensions/places-menu/extension.js b/extensions/places-menu/extension.js index 9165a0a3..53663fc7 100644 --- a/extensions/places-menu/extension.js +++ b/extensions/places-menu/extension.js @@ -88,15 +88,12 @@ class PlacesMenu extends PanelMenu.Button { _init() { super._init(0.0, _('Places')); - let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); let label = new St.Label({ text: _('Places'), y_expand: true, y_align: Clutter.ActorAlign.CENTER, }); - hbox.add_child(label); - hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM)); - this.add_actor(hbox); + this.add_actor(label); this.placesManager = new PlaceDisplay.PlacesManager();