From 6629e748918ab13685de06da917b2df3b68492d2 Mon Sep 17 00:00:00 2001 From: Danielle Fore Date: Tue, 16 Jan 2024 11:26:03 -0800 Subject: [PATCH] WifiMenuItem: also rich list --- src/Views/WifiPage.vala | 1 + src/Widgets/WifiMenuItem.vala | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Views/WifiPage.vala b/src/Views/WifiPage.vala index aab3b518..a133a8f4 100644 --- a/src/Views/WifiPage.vala +++ b/src/Views/WifiPage.vala @@ -64,6 +64,7 @@ namespace Network { wifi_list = new Gtk.ListBox (); wifi_list.set_sort_func (sort_func); wifi_list.set_placeholder (placeholder); + wifi_list.add_css_class (Granite.STYLE_CLASS_RICH_LIST); var hotspot_mode_alert = new Granite.Placeholder (_("This device is in Hotspot Mode")) { description = _("Turn off the Hotspot Mode to connect to other Access Points.") diff --git a/src/Widgets/WifiMenuItem.vala b/src/Widgets/WifiMenuItem.vala index e89ff58f..ec33eb76 100644 --- a/src/Widgets/WifiMenuItem.vala +++ b/src/Widgets/WifiMenuItem.vala @@ -56,7 +56,7 @@ public class Network.WifiMenuItem : Gtk.ListBoxRow { public WifiMenuItem (NM.AccessPoint ap) { img_strength = new Gtk.Image () { - pixel_size = 32 + icon_size = LARGE }; ssid_label = new Gtk.Label (null) { @@ -89,11 +89,7 @@ public class Network.WifiMenuItem : Gtk.ListBoxRow { var grid = new Gtk.Grid () { valign = Gtk.Align.CENTER, - column_spacing = 6, - margin_start = 6, - margin_end = 6, - margin_top = 6, - margin_bottom = 6 + column_spacing = 6 }; grid.attach (img_strength, 0, 0, 1, 2); grid.attach (ssid_label, 1, 0);