Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions data/indicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,15 @@ device-scale .image-button:disabled,
player-row .image-button:disabled {
background: @insensitive_bg_color;
}

/* Default menuitem padding is 6px.
Reduce it on the item and increase it on the radio button to ease toggling.
Leave 1 pixel padding to not select when the mouse is "on the border" of items to avoid miss-clicks. */
menuitem.radio-list {
padding-top: 1px;
padding-bottom: 1px;
}
menuitem.radio-list radiobutton {
padding-top: 5px;
padding-bottom: 5px;
}
5 changes: 5 additions & 0 deletions src/Widgets/DeviceItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public class Sound.Widgets.DeviceItem : Gtk.ListBoxRow {
}

construct {
// Add "radio-list" CSS class
Gtk.StyleContext context;
context = get_style_context ();
context.add_class ("radio-list");

var label = new Gtk.Label (device.display_name) {
halign = START,
hexpand = true,
Expand Down