Skip to content

Commit

Permalink
Improve styling of list item's collapsing triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed May 24, 2024
1 parent be6d679 commit 3e40aad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/re_ui/src/list_item/list_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,12 @@ impl<'a> ListItem<'a> {
id.unwrap_or(ui.id()).with("collapsing_triangle"),
egui::Sense::click(),
);
ReUi::paint_collapsing_triangle(ui, openness, triangle_rect.center(), &visuals);
ReUi::paint_collapsing_triangle(
ui,
openness,
triangle_rect.center(),
ui.style().interact(&triangle_response),
);
collapse_response = Some(triangle_response);
}

Expand Down

0 comments on commit 3e40aad

Please sign in to comment.