Repository navigation
refactor(ui): phase 5 — barres de défilement et contrôles au clic - #19
Merged
tension-atoi merged 1 commit intoOct 24, 2026
Merged
Conversation
- Port Skwir's scrollbar (Apache-2.0) into `elements::scrollbar`: a bar over the right edge of what scrolls, its thumb placed in `prepaint` from the scroll handle, a press in the gutter jumping there, a drag following the pointer. Calix had none: nothing said how much of a catalogue of thousands lay below the fold. - The catalogue (table and cards), the inspector, the operation log, the news, the settings and the palette each get theirs. The pages that scrolled both ways without a handle now scroll vertically through one. - Every control activated by `on_key_down` on Enter/Space (about thirty) takes the keyboard through GPUI's `on_click` instead: on key-up, once, and only if the focus did not move. A held Enter no longer repeats the action. - Install, Uninstall, Save and Reset act on a full click: a press dragged off the button cancels it. - Text on full colours (Install, Uninstall, an enabled toggle, the phase cards, the copied state) uses `theme.on(fill)`, whose contrast is guarded, instead of `bg_app`. - Tests: the thumb's geometry; a real window where a press in the gutter scrolls to the end and a drag brings the list back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 5 du refactor front-end inspiré de Skwir. Empilée sur #18.
Ce qui change
Scrollbarde Skwir (Apache-2.0) danselements::scrollbar. Elle se pose sur le bord droit (sans décaler le contenu), son pouce est placé dansprepaintà partir de la poignée de défilement ; un clic dans la gouttière saute à l'endroit, un glissement suit le pointeur. Calix n'en avait aucune. Ajoutée au catalogue (tableau et cartes), à l'inspecteur, au journal, aux actualités, aux réglages et à la palette.on_key_downEntrée/Espace passent paron_clickde GPUI (au relâchement, une seule fois, seulement si le focus n'a pas bougé). Une touche Entrée maintenue ne répète plus l'action.theme.on(fill), contraste garanti, au lieu debg_app(oubli de la phase 2).AGENTS.md.Vérification :
cargo test→ 272 OK, dont un test qui dessine une vraie liste, clique dans la gouttière (défile jusqu'au bout) puis glisse (revient en haut). À regarder à l'œil : la barre du catalogue au survol, dans les deux thèmes.Generated by Claude Code