Skip to content
Merged
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
10 changes: 9 additions & 1 deletion data/stylesheet/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,15 @@ columnview {
padding: 0.5em;
}

row:nth-child(odd) {
row:nth-child(odd):not(:selected):not(:focus-visible) {
background: #{'@bg_color'};
}

// Highlight selected rows with the accent color, like the theme does
// for keyboard navigation, so mouse and keyboard selection look the same
listview row:selected,
listview row:focus-visible:selected {
background: #{'@selected_bg_color'};
color: #{'@selected_fg_color'};
}
}
5 changes: 4 additions & 1 deletion src/Views/LogView/LogView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public class Monitor.LogView : Granite.Bin {

model = new SystemdLogModel ();

var selection_model = new Gtk.NoSelection (model);
var selection_model = new Gtk.SingleSelection (model) {
autoselect = false,
can_unselect = true
};

var header_factory = new Gtk.SignalListItemFactory ();
header_factory.setup.connect (setup_header);
Expand Down
Loading