From b6a083225890bfd1ecf870ce051f12943cedf7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 22 May 2024 18:42:06 +0200 Subject: [PATCH] panel: Use branding in activities button Replace the upstream workspace dots with a red hat. --- data/gnome-shell-icons.gresource.xml | 1 + data/icons/scalable/actions/rh-logo.svg | 76 +++++++++++++++++++ .../gnome-shell-sass/widgets/_panel.scss | 5 ++ js/ui/panel.js | 6 +- 4 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 data/icons/scalable/actions/rh-logo.svg diff --git a/data/gnome-shell-icons.gresource.xml b/data/gnome-shell-icons.gresource.xml index db65673b41..e6c49ae343 100644 --- a/data/gnome-shell-icons.gresource.xml +++ b/data/gnome-shell-icons.gresource.xml @@ -15,6 +15,7 @@ scalable/actions/pointer-secondary-click-symbolic.svg scalable/actions/preview-close-symbolic.svg scalable/actions/record-screen-symbolic.svg + scalable/actions/rh-logo.svg scalable/actions/screencast-recorded-symbolic.svg scalable/actions/screencast-stop-symbolic.svg scalable/actions/screenshooter-symbolic.svg diff --git a/data/icons/scalable/actions/rh-logo.svg b/data/icons/scalable/actions/rh-logo.svg new file mode 100644 index 0000000000..e1330557c5 --- /dev/null +++ b/data/icons/scalable/actions/rh-logo.svg @@ -0,0 +1,76 @@ + + + + + + + + + RedHat-Logo-Hat-Color + + + + + + + + RedHat-Logo-Hat-Color + + + + diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss index 2a29eee9da..02f8232de6 100644 --- a/data/theme/gnome-shell-sass/widgets/_panel.scss +++ b/data/theme/gnome-shell-sass/widgets/_panel.scss @@ -58,6 +58,11 @@ $panel_transition_duration: 250ms; // same as the overview transition duration min-height: $scalable_icon_size * 0.5; background-color: $panel_fg_color; } + + & .activities-logo { + icon-size: $scalable_icon_size * 1.25; + padding: 0 $base_padding; + } } // screen activity indicators diff --git a/js/ui/panel.js b/js/ui/panel.js index 62c8ebb31a..4fa094bd93 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -425,7 +425,11 @@ class ActivitiesButton extends PanelMenu.Button { accessible_name: _('Activities'), }); - this.add_child(new WorkspaceIndicators()); + const logoIcon = new St.Icon({ + icon_name: 'rh-logo', + style_class: 'activities-logo', + }); + this.add_child(logoIcon); Main.overview.connectObject('showing', () => this.add_style_pseudo_class('checked'), -- 2.45.1