From 3ee9a1e18716aa25ab09458201e69c83d3df276c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 11 Apr 2025 01:22:54 +0200 Subject: [PATCH] Wrap `devtools` overlays in `opaque` --- devtools/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/devtools/src/lib.rs b/devtools/src/lib.rs index b41b782a..963dfdca 100644 --- a/devtools/src/lib.rs +++ b/devtools/src/lib.rs @@ -17,8 +17,8 @@ use crate::futures::Subscription; use crate::program::Program; use crate::runtime::Task; use crate::widget::{ - bottom_right, button, center, column, container, horizontal_space, row, - scrollable, stack, text, themer, + bottom_right, button, center, column, container, horizontal_space, opaque, + row, scrollable, stack, text, themer, }; use std::fmt; @@ -354,16 +354,16 @@ where let notification = self.show_notification.then(|| { themer( derive_theme(), - bottom_right( + bottom_right(opaque( container(text("Press F12 to open debug metrics")) .padding(10) .style(container::dark), - ), + )), ) }); stack![view] - .push_maybe(mode) + .push_maybe(mode.map(opaque)) .push_maybe(notification) .into() }