From 3fd6013393765bd8f1350da6e64b86a0961be9cd Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 21 Jan 2014 16:48:17 -0500 Subject: [PATCH] apps-menu: add logo icon to Applications menu Brand requested it. --- extensions/apps-menu/extension.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js index 6376b52..17285fd 100644 --- a/extensions/apps-menu/extension.js +++ b/extensions/apps-menu/extension.js @@ -363,13 +363,24 @@ class ApplicationsButton extends PanelMenu.Button { // role ATK_ROLE_MENU like other elements of the panel. this.accessible_role = Atk.Role.LABEL; + const hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); + + const iconFile = Gio.File.new_for_path( + '/usr/share/icons/hicolor/scalable/apps/start-here.svg'); + this._icon = new St.Icon({ + gicon: new Gio.FileIcon({ file: iconFile }), + style_class: 'panel-logo-icon' + }); + hbox.add_actor(this._icon); + this._label = new St.Label({ text: _('Applications'), y_expand: true, y_align: Clutter.ActorAlign.CENTER, }); + hbox.add_actor(this._label); - this.add_actor(this._label); + this.add_actor(hbox); this.name = 'panelApplications'; this.label_actor = this._label; -- 2.28.0