From 1afaaf76608771f29f3897045690b9d753cff021 Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 21 Sep 2026 13:03:33 +0530 Subject: [PATCH 1/7] Use OS logo if available instead of default search icon --- src/Indicator.vala | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index e70b8de6..1586cdf3 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -69,7 +69,18 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_label = new Gtk.Label (_("Applications")); indicator_label.vexpand = true; - var indicator_icon = new Gtk.Image.from_icon_name ("system-search-symbolic"); + var indicator_icon_name = Environment.get_os_info ("LOGO"); + if (indicator_icon_name != null && indicator_icon_name.length > 0) { + indicator_icon_name += "-symbolic"; + } else { + indicator_icon_name = "distributor-logo-symbolic"; + } + + if (!Gtk.IconTheme.get_for_display (Gdk.Display.get_default ()).has_icon (indicator_icon_name)) { + indicator_icon_name = "system-search-symbolic"; + } + + var indicator_icon = new Gtk.Image.from_icon_name (indicator_icon_name); indicator_grid = new Gtk.Grid (); indicator_grid.attach (indicator_icon, 0, 0, 1, 1); From 692f9f94c80d59793120e0f6050c2b5649bf186c Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 21 Sep 2026 13:28:59 +0530 Subject: [PATCH 2/7] Use Box instead of Grid and add padding size 6 --- src/Indicator.vala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index 1586cdf3..e85979ad 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -21,7 +21,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { private const string GALA_BEHAVIOR_SCHEMA = "io.elementary.desktop.wm.behavior"; private DBusService? dbus_service = null; - private Gtk.Grid? indicator_grid = null; + private Gtk.Box? indicator_box = null; private SlingshotView? view = null; private static GLib.Settings? keybinding_settings; @@ -65,7 +65,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { } public override Gtk.Widget get_display_widget () { - if (indicator_grid == null) { + if (indicator_box == null) { var indicator_label = new Gtk.Label (_("Applications")); indicator_label.vexpand = true; @@ -82,9 +82,9 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_icon = new Gtk.Image.from_icon_name (indicator_icon_name); - indicator_grid = new Gtk.Grid (); - indicator_grid.attach (indicator_icon, 0, 0, 1, 1); - indicator_grid.attach (indicator_label, 1, 0, 1, 1); + indicator_box = new Gtk.Box (HORIZONTAL, 6); + indicator_box.append (indicator_icon); + indicator_box.append (indicator_label); update_tooltip (); if (keybinding_settings != null) { @@ -106,7 +106,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { visible = true; - return indicator_grid; + return indicator_box; } public override void opened () { @@ -121,7 +121,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { private void update_tooltip () { string[] accels = {}; - if (keybinding_settings != null && indicator_grid != null) { + if (keybinding_settings != null && indicator_box != null) { var raw_accels = keybinding_settings.get_strv ("panel-main-menu"); foreach (unowned string raw_accel in raw_accels) { if (raw_accel != "") accels += raw_accel; @@ -134,7 +134,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { } } - indicator_grid.tooltip_markup = Granite.markup_accel_tooltip (accels, _("Open and search apps")); + indicator_box.tooltip_markup = Granite.markup_accel_tooltip (accels, _("Open and search apps")); } } From 60457ee6825814fd5dbb625769ff28c59c79d80a Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 21 Sep 2026 15:45:27 +0530 Subject: [PATCH 3/7] TIL Granite.Box is a thing --- src/Indicator.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index e85979ad..5eb5ce6e 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -82,7 +82,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_icon = new Gtk.Image.from_icon_name (indicator_icon_name); - indicator_box = new Gtk.Box (HORIZONTAL, 6); + indicator_box = new Granite.Box (HORIZONTAL, HALF); indicator_box.append (indicator_icon); indicator_box.append (indicator_label); update_tooltip (); From ecb9e8d38c56bba810b46bb1bf42c043cc1084c5 Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 21 Sep 2026 20:11:19 +0530 Subject: [PATCH 4/7] Revert "TIL Granite.Box is a thing" This reverts commit 60457ee6825814fd5dbb625769ff28c59c79d80a. --- src/Indicator.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index 5eb5ce6e..e85979ad 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -82,7 +82,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_icon = new Gtk.Image.from_icon_name (indicator_icon_name); - indicator_box = new Granite.Box (HORIZONTAL, HALF); + indicator_box = new Gtk.Box (HORIZONTAL, 6); indicator_box.append (indicator_icon); indicator_box.append (indicator_label); update_tooltip (); From f29e9641cb91784a415b9099e73fde4b54acf32f Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 21 Sep 2026 20:11:37 +0530 Subject: [PATCH 5/7] Revert "Use Box instead of Grid and add padding size 6" This reverts commit 692f9f94c80d59793120e0f6050c2b5649bf186c. --- src/Indicator.vala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index e85979ad..1586cdf3 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -21,7 +21,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { private const string GALA_BEHAVIOR_SCHEMA = "io.elementary.desktop.wm.behavior"; private DBusService? dbus_service = null; - private Gtk.Box? indicator_box = null; + private Gtk.Grid? indicator_grid = null; private SlingshotView? view = null; private static GLib.Settings? keybinding_settings; @@ -65,7 +65,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { } public override Gtk.Widget get_display_widget () { - if (indicator_box == null) { + if (indicator_grid == null) { var indicator_label = new Gtk.Label (_("Applications")); indicator_label.vexpand = true; @@ -82,9 +82,9 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_icon = new Gtk.Image.from_icon_name (indicator_icon_name); - indicator_box = new Gtk.Box (HORIZONTAL, 6); - indicator_box.append (indicator_icon); - indicator_box.append (indicator_label); + indicator_grid = new Gtk.Grid (); + indicator_grid.attach (indicator_icon, 0, 0, 1, 1); + indicator_grid.attach (indicator_label, 1, 0, 1, 1); update_tooltip (); if (keybinding_settings != null) { @@ -106,7 +106,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { visible = true; - return indicator_box; + return indicator_grid; } public override void opened () { @@ -121,7 +121,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { private void update_tooltip () { string[] accels = {}; - if (keybinding_settings != null && indicator_box != null) { + if (keybinding_settings != null && indicator_grid != null) { var raw_accels = keybinding_settings.get_strv ("panel-main-menu"); foreach (unowned string raw_accel in raw_accels) { if (raw_accel != "") accels += raw_accel; @@ -134,7 +134,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { } } - indicator_box.tooltip_markup = Granite.markup_accel_tooltip (accels, _("Open and search apps")); + indicator_grid.tooltip_markup = Granite.markup_accel_tooltip (accels, _("Open and search apps")); } } From 2f34439d197359d2067db27402bb43af9d5ff596 Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 21 Sep 2026 20:11:50 +0530 Subject: [PATCH 6/7] Revert "Use OS logo if available instead of default search icon" This reverts commit 1afaaf76608771f29f3897045690b9d753cff021. --- src/Indicator.vala | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index 1586cdf3..e70b8de6 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -69,18 +69,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_label = new Gtk.Label (_("Applications")); indicator_label.vexpand = true; - var indicator_icon_name = Environment.get_os_info ("LOGO"); - if (indicator_icon_name != null && indicator_icon_name.length > 0) { - indicator_icon_name += "-symbolic"; - } else { - indicator_icon_name = "distributor-logo-symbolic"; - } - - if (!Gtk.IconTheme.get_for_display (Gdk.Display.get_default ()).has_icon (indicator_icon_name)) { - indicator_icon_name = "system-search-symbolic"; - } - - var indicator_icon = new Gtk.Image.from_icon_name (indicator_icon_name); + var indicator_icon = new Gtk.Image.from_icon_name ("system-search-symbolic"); indicator_grid = new Gtk.Grid (); indicator_grid.attach (indicator_icon, 0, 0, 1, 1); From 5df92a56075c85868cb81d8424b1f3c8b1fb129d Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Tue, 22 Sep 2026 09:19:00 +0530 Subject: [PATCH 7/7] Use start-here-symbolic icon instead --- src/Indicator.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Indicator.vala b/src/Indicator.vala index e70b8de6..ffad745f 100644 --- a/src/Indicator.vala +++ b/src/Indicator.vala @@ -69,7 +69,7 @@ public class Slingshot.Indicator : Wingpanel.Indicator { var indicator_label = new Gtk.Label (_("Applications")); indicator_label.vexpand = true; - var indicator_icon = new Gtk.Image.from_icon_name ("system-search-symbolic"); + var indicator_icon = new Gtk.Image.from_icon_name ("start-here-symbolic"); indicator_grid = new Gtk.Grid (); indicator_grid.attach (indicator_icon, 0, 0, 1, 1);