panel: add an icon to the ActivitiesButton

Requested by brand
This commit is contained in:
Ray Strode 2014-01-15 16:45:34 -05:00
parent 04ea89d683
commit 503a9d729c
2 changed files with 13 additions and 1 deletions

View File

@ -776,6 +776,11 @@ StScrollBar {
//dimensions of the icon are hardcoded
}
.panel-logo-icon {
padding-right: .4em;
icon-size: 1em;
}
.system-status-icon,
.app-menu-icon > StIcon,
.popup-menu-arrow {

View File

@ -406,11 +406,18 @@ var 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;