|
|
12ec7d |
From 7196f5d0a60243e218d6a906b9db4f3b6608b47c Mon Sep 17 00:00:00 2001
|
|
|
12ec7d |
From: Ray Strode <rstrode@redhat.com>
|
|
|
12ec7d |
Date: Wed, 15 Jan 2014 16:45:34 -0500
|
|
|
12ec7d |
Subject: [PATCH] panel: add an icon to the ActivitiesButton
|
|
|
12ec7d |
|
|
|
12ec7d |
Requested by brand
|
|
|
12ec7d |
---
|
|
|
12ec7d |
data/theme/gnome-shell-high-contrast.css | 3 +++
|
|
|
12ec7d |
data/theme/gnome-shell.css | 3 +++
|
|
|
12ec7d |
js/ui/panel.js | 9 ++++++++-
|
|
|
12ec7d |
3 files changed, 14 insertions(+), 1 deletion(-)
|
|
|
12ec7d |
|
|
|
12ec7d |
diff --git a/data/theme/gnome-shell-high-contrast.css b/data/theme/gnome-shell-high-contrast.css
|
|
|
12ec7d |
index 51477e713..e7b94624a 100644
|
|
|
12ec7d |
--- a/data/theme/gnome-shell-high-contrast.css
|
|
|
12ec7d |
+++ b/data/theme/gnome-shell-high-contrast.css
|
|
|
12ec7d |
@@ -688,6 +688,9 @@ StScrollBar {
|
|
|
12ec7d |
-st-icon-style: symbolic;
|
|
|
12ec7d |
margin-left: 4px;
|
|
|
12ec7d |
margin-right: 4px; }
|
|
|
12ec7d |
+ #panel .panel-button .panel-logo-icon {
|
|
|
12ec7d |
+ padding-right: .4em;
|
|
|
12ec7d |
+ icon-size: 1em; }
|
|
|
12ec7d |
#panel .panel-button .system-status-icon,
|
|
|
12ec7d |
#panel .panel-button .app-menu-icon > StIcon,
|
|
|
12ec7d |
#panel .panel-button .popup-menu-arrow {
|
|
|
12ec7d |
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
|
|
|
12ec7d |
index 6aab70867..c1207dcd5 100644
|
|
|
12ec7d |
--- a/data/theme/gnome-shell.css
|
|
|
12ec7d |
+++ b/data/theme/gnome-shell.css
|
|
|
12ec7d |
@@ -688,6 +688,9 @@ StScrollBar {
|
|
|
12ec7d |
-st-icon-style: symbolic;
|
|
|
12ec7d |
margin-left: 4px;
|
|
|
12ec7d |
margin-right: 4px; }
|
|
|
12ec7d |
+ #panel .panel-button .panel-logo-icon {
|
|
|
12ec7d |
+ padding-right: .4em;
|
|
|
12ec7d |
+ icon-size: 1em; }
|
|
|
12ec7d |
#panel .panel-button .system-status-icon,
|
|
|
12ec7d |
#panel .panel-button .app-menu-icon > StIcon,
|
|
|
12ec7d |
#panel .panel-button .popup-menu-arrow {
|
|
|
12ec7d |
diff --git a/js/ui/panel.js b/js/ui/panel.js
|
|
|
12ec7d |
index d7c8397b5..3ec43210e 100644
|
|
|
12ec7d |
--- a/js/ui/panel.js
|
|
|
12ec7d |
+++ b/js/ui/panel.js
|
|
|
12ec7d |
@@ -409,11 +409,18 @@ var ActivitiesButton = new Lang.Class({
|
|
|
12ec7d |
|
|
|
12ec7d |
this.actor.name = 'panelActivities';
|
|
|
12ec7d |
|
|
|
12ec7d |
+ let box = new St.BoxLayout();
|
|
|
12ec7d |
+ this.actor.add_actor(box);
|
|
|
12ec7d |
+ let iconFile = Gio.File.new_for_path('/usr/share/icons/hicolor/scalable/apps/start-here.svg');
|
|
|
12ec7d |
+ this._icon = new St.Icon({ gicon: new Gio.FileIcon({ file: iconFile }),
|
|
|
12ec7d |
+ style_class: 'panel-logo-icon' });
|
|
|
12ec7d |
+ box.add_actor(this._icon);
|
|
|
12ec7d |
+
|
|
|
12ec7d |
/* Translators: If there is no suitable word for "Activities"
|
|
|
12ec7d |
in your language, you can use the word for "Overview". */
|
|
|
12ec7d |
this._label = new St.Label({ text: _("Activities"),
|
|
|
12ec7d |
y_align: Clutter.ActorAlign.CENTER });
|
|
|
12ec7d |
- this.actor.add_actor(this._label);
|
|
|
12ec7d |
+ box.add_actor(this._label);
|
|
|
12ec7d |
|
|
|
12ec7d |
this.actor.label_actor = this._label;
|
|
|
12ec7d |
|
|
|
12ec7d |
--
|
|
|
12ec7d |
2.14.2
|
|
|
12ec7d |
|