Wrap devtools overlays in opaque
This commit is contained in:
parent
482d54118a
commit
3ee9a1e187
1 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue