diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 13:08:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 15:21:15 -0300 |
| commit | 1b2ac091200e9192f3677abe161217ba82463606 (patch) | |
| tree | 8fe35cf6edaa032e4650a631598dfab2fc4aabb5 /src/panes.zig | |
| parent | 1870d06248f884439cb2ec4ef8f1b03952df2eb8 (diff) | |
| download | pardes-1b2ac091200e9192f3677abe161217ba82463606.tar.gz pardes-1b2ac091200e9192f3677abe161217ba82463606.zip | |
effects out, the message animations: a message no longer falls into its row and dissolves out of it; it shows at once and goes when it has lingered, its lifetime the one deadline the core keeps for it (MessageLinger, a wait nextWake jumps in one step); MessageAnimation, MessageFall and MessageDissolve go with their settings, the entering and leaving phases (Pane.MessagePhase is shown or lingering), Messages.messageMotion and noticeLife, the notice band's colour blend toward the page, Layer.slide and fade, and the window's offset band, its clip to the body and its rule's fade; no frontend fades a message of its own (the window would have to see a notice come and go between frames for a 150 ms fade); the snapshot harness's, kitty harness's and casts' inits lose `MessageAnimation off`; the message tests keep their linger and stacking and lose the fall and dissolve, and `a notice leaves quicker than it arrives` goes; GUI goldens 10 and 12 to 17 change, the golden session having run with MessageAnimation on by default: a message dismissed while it fell stayed up (its dismissal undone by the next announcement), and FocusTint's stood on in every scene after; the tree before this change with MessageAnimation off draws exactly these frames, all sixteen byte for byte
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/panes.zig')
| -rw-r--r-- | src/panes.zig | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/panes.zig b/src/panes.zig index 95917b42..73a0fc9e 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -309,15 +309,12 @@ pub const Pane = struct { /// that view's focus leaving the pane drops it. prompt_view: u8 = 0, - pub const MessagePhase = enum { entering, shown, lingering, leaving }; - /// One message line's animation: falling in, shown, lingering after the - /// key or click that dismissed it, dissolving. `frame` counts animation - /// frames within the phase. + pub const MessagePhase = enum { shown, lingering }; + /// One message line's life: shown, or lingering after the key or click + /// that dismissed it, `frame` frames of its linger gone. pub const MessageLife = struct { phase: MessagePhase = .shown, frame: u16 = 0, - /// Dismissed while still falling: it lingers once it has landed. - dismissed: bool = false, }; /// Older message lines kept on screen under a new one. pub const message_stack = 3; |
