Skip to content

Commit 57b45e7

Browse files
authored
Hide outline rectangle around views (#8507)
* Closes #8494 Removes the highlighted rectangle around views that are hovered or selected. Why? Because we already have the tab title for this. Keeps it for containers, because they have no tab title. https://github.com/user-attachments/assets/bb407161-f3a8-4c66-bbd9-816f8dd28561
1 parent 0a5fe08 commit 57b45e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/viewer/re_viewport/src/viewport_ui.rs

+7
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ impl ViewportUi {
165165
continue;
166166
};
167167

168+
if matches!(contents, Contents::View(_))
169+
&& !should_display_drop_destination_frame
170+
{
171+
// We already light up the view tab title; that is enough
172+
continue;
173+
}
174+
168175
// We want the rectangle to be on top of everything in the viewport,
169176
// including stuff in "zoom-pan areas", like we use in the graph view.
170177
let top_layer_id =

0 commit comments

Comments
 (0)