fix: unify Console prompt and output and keep splitters above pane chrome
Verify Tessera GUI / verify (push) Failing after 7m13s
Verify Tessera GUI / verify (push) Failing after 7m13s
This commit is contained in:
@@ -12,7 +12,7 @@ and display-list rendering are shared with the page renderer.
|
||||
Enter/Space activation, disabled controls and cursor roles.
|
||||
- `theme.rs`: neutral/error/success colors, accent presets, readable custom accents
|
||||
and shared idle/hover/pressed/selected colors.
|
||||
- `widgets.rs`: button, tab, toggle, text field chrome, selectable row, color swatch,
|
||||
- `widgets.rs`: button, tab, toggle, text field chrome, borderless inline prompt target, selectable row, color swatch,
|
||||
splitter and scrollbar thumb. Text is clipped to its widget bounds. Hover, pressed,
|
||||
selection, keyboard focus and disabled states compose consistently.
|
||||
- `mod.rs`: public interface used by management surfaces.
|
||||
@@ -37,7 +37,9 @@ Store `ui.targets` with the newly produced layout and render `ui.list` through t
|
||||
native display-list backend. Reconcile retained interaction against the new targets;
|
||||
request one more redraw when a target moves, disappears or changes enabled state.
|
||||
This settles hover under a stationary pointer after a layout change without a timer
|
||||
or continuous rendering loop. Preserve clipping and scale every primitive, including
|
||||
or continuous rendering loop. Paint and register splitters after pane content and
|
||||
toolbars so neither their appearance nor their hit regions are obscured.
|
||||
Preserve clipping and scale every primitive, including
|
||||
focus outlines, when converting logical coordinates to physical pixels.
|
||||
|
||||
Dispatch pointer movement, press and release to `Interaction`. Press establishes
|
||||
@@ -50,7 +52,9 @@ Tab / Shift-Tab traverse enabled controls; Enter / Space activate a focused butt
|
||||
on key release. The host's editor keeps plain Tab for indentation and Shift-Tab for
|
||||
leaving the editor. Rows and drag handles are excluded from Tab traversal. Text
|
||||
editing, clipboard and IME remain host adapters; the widget layer owns their chrome
|
||||
and focus presentation. `src/clipboard.rs` guarantees UTF-8 for macOS clipboard
|
||||
and focus presentation. `inline_input` registers a text-input target without a
|
||||
background or focus border; a terminal-style host draws its own caret in the same
|
||||
scrollable stream as output. `src/clipboard.rs` guarantees UTF-8 for macOS clipboard
|
||||
subprocesses, independent of Finder's locale.
|
||||
|
||||
Tessera's developer tools are the first consumer. Domain actions, HTTP calls,
|
||||
|
||||
@@ -190,6 +190,17 @@ impl<A: Hash> Ui<A> {
|
||||
if focused || s.focused { 1.5 } else { 1.0 },
|
||||
);
|
||||
}
|
||||
/// A terminal prompt shares its surface with output; its caret is the focus cue.
|
||||
pub fn inline_input(&mut self, rect: Rect, action: A) {
|
||||
self.register(
|
||||
WidgetId::new(&action),
|
||||
rect,
|
||||
Role::TextField,
|
||||
Some(action),
|
||||
false,
|
||||
true,
|
||||
);
|
||||
}
|
||||
pub fn row(&mut self, paint: Rect, hit: Rect, action: A, selected: bool) {
|
||||
let s = self.register(
|
||||
WidgetId::new(&action),
|
||||
|
||||
Reference in New Issue
Block a user