Sketch: lines snap to horizontal/vertical near the axes (with an H/V marker; the constraint is inferred), inline dimension boxes sit beside what they measure instead of on it; Esc acts once per press (ends the line chain first, then the tool)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
bherbruckandClaude Opus 5.5 committed 2026-10-08 05:05:48 +00:00
1 parent d44a104dcc
commit b457b6b7b6
5 files changed
+68 -12

No files matched your search

+4
View File
@@ -134,6 +134,8 @@ pub struct SolveApp {
pub preview: preview::PreviewState,
/// The last command started interactively (id, label), for Repeat.
pub last_command: Option<(String, String)>,
/// Esc was already acted on this frame (by the shortcuts), so later handlers skip it.
pub esc_handled: bool,
pub status: Option<(String, f64, bool)>,
pub quit_requested: bool,
/// The application bar is the window's title bar (Windows, Linux: no OS decorations).
@@ -170,6 +172,7 @@ impl SolveApp {
tree: browser::TreeState::default(),
preview: preview::PreviewState::default(),
last_command: None,
esc_handled: false,
status: None,
quit_requested: false,
custom_titlebar: false,
@@ -508,6 +511,7 @@ impl SolveApp {
/// Per-frame logic before layout.
pub fn logic(&mut self, ctx: &egui::Context) {
self.esc_handled = false;
if !self.styled || theme::is_dark() != self.ui.dark {
theme::set_dark(self.ui.dark);
theme::apply(ctx);