Skip to content

Commit

Permalink
Better fix for selected listitem color
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 6, 2024
1 parent 2b8ecb2 commit da81026
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/viewer/re_ui/src/list_item/list_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ impl ListItem {
#[inline]
pub fn selected(mut self, selected: bool) -> Self {
self.selected = selected;
if selected {
self.interactive = true; // Hack needed, or the item is not shown as selected. TODO(emilk): why?
}
self
}

Expand Down Expand Up @@ -415,6 +412,8 @@ impl ListItem {
} else {
None
}
} else if selected {
Some(visuals.weak_bg_fill)
} else {
None
}
Expand Down

0 comments on commit da81026

Please sign in to comment.