fix(open): the cursor shows over the opening progress card

The viewport hides the system cursor for its crosshair, and the progress
card's backdrop claimed no cursor of its own, so while a drawing opened
the pointer vanished over the viewport and Cancel could not be aimed at.
The backdrop now shows the arrow. (#1727)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-15 16:35:21 +03:00
1 parent 03cf0f75eb
commit 1f99338018
1 file changed
+16 -10
+16 -10
View File
@@ -153,16 +153,22 @@ pub fn view<'a>(progress: &'a OpenProgress, _now: Instant) -> Element<'a, Messag
});
// ── Backdrop (click-blocker + dim) ────────────────────────────────────
let backdrop: Element<'_, Message> = container(Space::new().width(Fill).height(Fill))
.style(|theme: &Theme| container::Style {
background: Some(Background::Color(
theme.palette().background.strong.color.scale_alpha(0.72),
)),
..Default::default()
})
.width(Fill)
.height(Fill)
.into();
// It shows the arrow cursor: the viewport below hides the system cursor
// for its crosshair, which is not drawn while a drawing opens, so Cancel
// could not be found. (#1727)
let backdrop: Element<'_, Message> = iced::widget::mouse_area(
container(Space::new().width(Fill).height(Fill))
.style(|theme: &Theme| container::Style {
background: Some(Background::Color(
theme.palette().background.strong.color.scale_alpha(0.72),
)),
..Default::default()
})
.width(Fill)
.height(Fill),
)
.interaction(iced::mouse::Interaction::Idle)
.into();
let centered: Element<'_, Message> = container(card)
.center_x(Fill)