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