Skip to content

Commit

Permalink
Use RICH_LIST for device boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Oct 14, 2023
1 parent d42bc2d commit 06771f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DeviceRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ public class Sound.DeviceRow : Gtk.ListBoxRow {
description_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);

var grid = new Gtk.Grid () {
margin_top = 6,
margin_end = 6,
margin_bottom = 6,
margin_start = 6,
column_spacing = 12,
orientation = Gtk.Orientation.HORIZONTAL
};
Expand Down
1 change: 1 addition & 0 deletions src/InputPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class Sound.InputPanel : Gtk.Box {
vexpand = true
};
devices_listbox.set_placeholder (no_device_grid);
devices_listbox.add_css_class (Granite.STYLE_CLASS_RICH_LIST);

devices_listbox.row_activated.connect ((row) => {
pam.set_default_device.begin (((Sound.DeviceRow) row).device);
Expand Down
1 change: 1 addition & 0 deletions src/OutputPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class Sound.OutputPanel : Gtk.Box {
vexpand = true
};
devices_listbox.set_placeholder (no_device_grid);
devices_listbox.add_css_class (Granite.STYLE_CLASS_RICH_LIST);

var scrolled = new Gtk.ScrolledWindow () {
child = devices_listbox
Expand Down

0 comments on commit 06771f8

Please sign in to comment.