feat: add system widgets and a persistent native Console with bare assignments
Verify Tessera GUI / verify (push) Failing after 7m17s

This commit is contained in:
2026-10-20 18:36:48 +08:00
parent 1d4b1d3c86
commit 53e8d7b287
15 changed files with 1549 additions and 245 deletions
+30 -5
View File
@@ -84,6 +84,15 @@ impl TesseraApp {
}
fn handle_keyboard(&mut self, event: &winit::event::KeyEvent) {
if self.developer_tools.keyboard_control(
event,
self.modifiers.shift_key(),
&self.layout.developer_tools,
&self.activity,
) {
self.request_redraw();
return;
}
if event.state != ElementState::Pressed {
return;
}
@@ -165,6 +174,14 @@ impl TesseraApp {
);
drop(namespace);
self.layout = scene.layout;
window.set_cursor(
self.developer_tools
.cursor_kind(&self.layout.developer_tools),
);
if self.developer_tools.repaint {
self.developer_tools.repaint = false;
window.request_redraw();
}
let ime = self
.developer_tools
.ime_position(&self.layout.developer_tools);
@@ -256,10 +273,15 @@ impl ApplicationHandler<AppEvent> for TesseraApp {
);
window.set_cursor(
self.developer_tools
.cursor_kind(&self.layout.developer_tools, next),
.cursor_kind(&self.layout.developer_tools),
);
window.request_redraw();
}
WindowEvent::CursorLeft { .. } => {
self.developer_tools.pointer_left();
window.set_cursor(winit::window::CursorIcon::Default);
window.request_redraw();
}
WindowEvent::MouseInput {
state,
button: MouseButton::Left,
@@ -272,7 +294,11 @@ impl ApplicationHandler<AppEvent> for TesseraApp {
&self.activity,
);
} else {
self.developer_tools.release();
self.developer_tools.release(
&self.layout.developer_tools,
self.pointer,
&self.activity,
);
}
window.request_redraw();
}
@@ -304,10 +330,9 @@ impl ApplicationHandler<AppEvent> for TesseraApp {
window.request_redraw();
}
WindowEvent::Focused(false) => {
self.developer_tools.release();
self.developer_tools.focus = None;
self.developer_tools.preedit.clear();
self.developer_tools.blur();
self.modifiers = ModifiersState::default();
window.request_redraw();
}
WindowEvent::ModifiersChanged(modifiers) => self.modifiers = modifiers.state(),
WindowEvent::KeyboardInput { event, .. } => self.handle_keyboard(&event),