Skip to content

Commit

Permalink
WifiMenuItem: also rich list
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Jan 16, 2024
1 parent 41914e5 commit 6629e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Views/WifiPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
8 changes: 2 additions & 6 deletions src/Widgets/WifiMenuItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6629e74

Please sign in to comment.