-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background color settings uses new generic ui now #6480
Conversation
Deployed docs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
fn fallback_for(&self, ctx: &re_viewer_context::QueryContext<'_>) -> Color { | ||
// Color is a fairly common component, make sure this is the right context. | ||
if ctx.archetype_name == Some(Background::name()) { | ||
Color::WHITE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason our 3D views default to white but our 2D views default to black?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that was an expressed preference by some folks at some point
94c2c73
to
b8bdc66
Compare
b8bdc66
to
4e05c5d
Compare
What
First practical use of automatic fallbacks for view properties that is applied both on query & ui: Query for
background
now goes through the newViewProperty
utility, ui now renders with the generic view property ui method.Note how the system picks the right defaults depending on the context despite this being the same archetype:
https://github.com/rerun-io/rerun/assets/1220815/1f072048-937a-4721-b526-7bed9433b61b
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.