From d4d0f08e0da76833e9262bac2681fa5d76b2265f Mon Sep 17 00:00:00 2001 From: rpm-build Date: Jan 15 2021 06:11:27 +0000 Subject: 0001-panel-add-an-icon-to-the-ActivitiesButton.patch patch_name: 0001-panel-add-an-icon-to-the-ActivitiesButton.patch present_in_specfile: true location_in_specfile: 17 --- diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index e79f093..31204b7 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -777,6 +777,11 @@ StScrollBar { //dimensions of the icon are hardcoded } + .panel-logo-icon { + padding-right: .4em; + icon-size: 1em; + } + &:hover { color: lighten($fg_color, 10%); } diff --git a/js/ui/panel.js b/js/ui/panel.js index 1648485..ede1c2b 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -465,11 +465,18 @@ class ActivitiesButton extends PanelMenu.Button { 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;