Merge branch 'master' into feature/test-recorder

This commit is contained in:
Héctor Ramón Jiménez 2025-07-08 00:29:55 +02:00
commit 98d8f466bb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
98 changed files with 643 additions and 204 deletions

View file

@ -397,13 +397,16 @@ where
}
.map(|mode| Element::from(mode).map(Event::Message));
let notification = self.show_notification.then(|| {
bottom_right(opaque(
container(text("Press F12 to open developer tools"))
.padding(10)
.style(container::dark),
))
});
let notification = self
.show_notification
.then(|| text("Press F12 to open debug metrics"))
.or_else(|| {
debug::is_stale().then(|| {
text(
"Types have changed. Restart to re-enable hotpatching.",
)
})
});
let sidebar = if let Mode::Open { tester } = &self.mode {
let title = monospace("Developer Tools");
@ -429,7 +432,13 @@ where
stack![content]
.height(Fill)
.push_maybe(setup.map(opaque))
.push_maybe(notification),
.push_maybe(notification.map(|notification| {
bottom_right(opaque(
container(notification)
.padding(10)
.style(container::dark),
))
})),
)
.into()
}