From 16febef9581d3689fc61861086432e188d4dcb2d Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 15 Jan 2014 16:45:34 -0500 Subject: [PATCH] panel: add an icon to the ActivitiesButton Requested by brand --- data/theme/gnome-shell.css | 5 +++++ js/ui/panel.js | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 8f84c44..c8a1bd9 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -713,6 +713,11 @@ StScrollBar StButton#vhandle:active { icon-shadow: black 0px 2px 2px; } +.panel-logo-icon { + padding-right: .4em; + icon-size: 1em; +} + .panel-menu { -boxpointer-gap: 4px; } diff --git a/js/ui/panel.js b/js/ui/panel.js index 05d43f9..dd04601 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -562,11 +562,18 @@ const ActivitiesButton = new Lang.Class({ this.actor.name = 'panelActivities'; + let box = new St.BoxLayout(); + this.actor.add_actor(box); + let 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' }); + box.add_actor(this._icon); + /* Translators: If there is no suitable word for "Activities" in your language, you can use the word for "Overview". */ this._label = new St.Label({ text: _("Activities"), y_align: Clutter.ActorAlign.CENTER }); - this.actor.add_actor(this._label); + box.add_actor(this._label); this.actor.label_actor = this._label; -- 2.3.3