Wrap devtools overlays in opaque

This commit is contained in:
Héctor Ramón Jiménez 2025-04-11 01:22:54 +02:00
parent 482d54118a
commit 3ee9a1e187
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -17,8 +17,8 @@ use crate::futures::Subscription;
use crate::program::Program; use crate::program::Program;
use crate::runtime::Task; use crate::runtime::Task;
use crate::widget::{ use crate::widget::{
bottom_right, button, center, column, container, horizontal_space, row, bottom_right, button, center, column, container, horizontal_space, opaque,
scrollable, stack, text, themer, row, scrollable, stack, text, themer,
}; };
use std::fmt; use std::fmt;
@ -354,16 +354,16 @@ where
let notification = self.show_notification.then(|| { let notification = self.show_notification.then(|| {
themer( themer(
derive_theme(), derive_theme(),
bottom_right( bottom_right(opaque(
container(text("Press F12 to open debug metrics")) container(text("Press F12 to open debug metrics"))
.padding(10) .padding(10)
.style(container::dark), .style(container::dark),
), )),
) )
}); });
stack![view] stack![view]
.push_maybe(mode) .push_maybe(mode.map(opaque))
.push_maybe(notification) .push_maybe(notification)
.into() .into()
} }