forked from 1b-agent/opencadstudio-upstream
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
03cf0f75eb
commit
1f99338018
1 file changed
+16
-10
@@ -153,16 +153,22 @@ pub fn view<'a>(progress: &'a OpenProgress, _now: Instant) -> Element<'a, Messag
|
|||||||
});
|
});
|
||||||
|
|
||||||
// ── Backdrop (click-blocker + dim) ────────────────────────────────────
|
// ── Backdrop (click-blocker + dim) ────────────────────────────────────
|
||||||
let backdrop: Element<'_, Message> = container(Space::new().width(Fill).height(Fill))
|
// It shows the arrow cursor: the viewport below hides the system cursor
|
||||||
.style(|theme: &Theme| container::Style {
|
// for its crosshair, which is not drawn while a drawing opens, so Cancel
|
||||||
background: Some(Background::Color(
|
// could not be found. (#1727)
|
||||||
theme.palette().background.strong.color.scale_alpha(0.72),
|
let backdrop: Element<'_, Message> = iced::widget::mouse_area(
|
||||||
)),
|
container(Space::new().width(Fill).height(Fill))
|
||||||
..Default::default()
|
.style(|theme: &Theme| container::Style {
|
||||||
})
|
background: Some(Background::Color(
|
||||||
.width(Fill)
|
theme.palette().background.strong.color.scale_alpha(0.72),
|
||||||
.height(Fill)
|
)),
|
||||||
.into();
|
..Default::default()
|
||||||
|
})
|
||||||
|
.width(Fill)
|
||||||
|
.height(Fill),
|
||||||
|
)
|
||||||
|
.interaction(iced::mouse::Interaction::Idle)
|
||||||
|
.into();
|
||||||
|
|
||||||
let centered: Element<'_, Message> = container(card)
|
let centered: Element<'_, Message> = container(card)
|
||||||
.center_x(Fill)
|
.center_x(Fill)
|
||||||
|
|||||||
Reference in new issue
Block a user