[gnome-shell] lookingGlass: Use symbolic icons on the toolbar
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] lookingGlass: Use symbolic icons on the toolbar
- Date: Mon, 14 Jun 2021 18:55:46 +0000 (UTC)
commit 8d042459eeffac0e12b7bc1c4f9214c143aa801e
Author: Chris Mayo <aklhfex gmail com>
Date: Sun Jun 13 16:36:50 2021 +0100
lookingGlass: Use symbolic icons on the toolbar
Replace gtk-color-picker, a private GTK 3 icon, with
find-location-symbolic as used in GTK Inspector.
As suggested by Daniel van Vugt.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1671>
js/ui/lookingGlass.js | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 61d17b7d05..cc5a7e5e47 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -1045,7 +1045,7 @@ class LookingGlass extends St.BoxLayout {
let toolbar = new St.BoxLayout({ name: 'Toolbar' });
this.add_actor(toolbar);
- let inspectIcon = new St.Icon({ icon_name: 'gtk-color-picker',
+ let inspectIcon = new St.Icon({ icon_name: 'find-location-symbolic',
icon_size: 24 });
toolbar.add_actor(inspectIcon);
inspectIcon.reactive = true;
@@ -1062,19 +1062,22 @@ class LookingGlass extends St.BoxLayout {
return Clutter.EVENT_STOP;
});
- let gcIcon = new St.Icon({ icon_name: 'user-trash-full',
+ let gcIcon = new St.Icon({ icon_name: 'user-trash-full-symbolic',
icon_size: 24 });
toolbar.add_actor(gcIcon);
gcIcon.reactive = true;
gcIcon.connect('button-press-event', () => {
- gcIcon.icon_name = 'user-trash';
+ gcIcon.icon_name = 'user-trash-symbolic';
System.gc();
this._timeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 500, () => {
- gcIcon.icon_name = 'user-trash-full';
+ gcIcon.icon_name = 'user-trash-full-symbolic';
this._timeoutId = 0;
return GLib.SOURCE_REMOVE;
});
- GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] gcIcon.icon_name =
\'user-trash-full\'');
+ GLib.Source.set_name_by_id(
+ this._timeoutId,
+ '[gnome-shell] gcIcon.icon_name = \'user-trash-full-symbolic\''
+ );
return Clutter.EVENT_PROPAGATE;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]