Repository navigation
feat(gui): redesign phase 2 — consolidate buttons & primitives - #242
Merged
Merged
Conversation
Route every bespoke button through the shared .btn system and a new .icon-btn primitive, resolving the competing-primaries and drifting-control issues: - buttons.css: add .icon-btn (28px square, ≥24px hit target), .btn--danger, .btn--warn, and .btn--block. (No .btn--success: green stays status-only.) - Machine panes: Connect + Start Stream are now the single teal primary (Start Stream was a competing green); E-Stop/Stop -> .btn--danger, Pause -> .btn--warn; Send/Home/etc -> .btn--secondary; refresh/clear/autoscroll -> .icon-btn. Delete the per-component .action/.cmd/.send blocks. Streaming progress bar carries the green (accent-color) — green = active status, not a resting button. - Viewport: toolbar glyphs -> .icon-btn; Generate preview/Retry -> .btn--primary. - LayerList: Add-Layer picker is now a real elevated popover (--shadow-lg, panel surface, single border, z-index) that closes on outside-click/Escape; row controls -> .icon-btn; off-scale 2px -> --spacing-xs. Hierarchy & inputs: - Fix the inverted header/label hierarchy: section titles -> --color-text (dominant eyebrow), field labels -> --color-text-label at --font-size-sm. - InspectorSection header is a clean hairline divider (no filled bar), reserving --color-bg-panel-alt for input wells; recess the Manual Control input too. - NumberField adds the unit gutter only when a unit is present (.--with-unit), removing the dead 48px gutter on unitless fields. - Inputs gain a transparent focus outline for forced-colors mode. States: - Wire the unused 6s error-toast duration; animate toast enter/exit (fly/fade + flip). Deferred to a follow-up: dialog focus-trap/restore, help-glyph-as-button, shared empty-state component, toast pause-on-hover. Refs #236
This was referenced Jun 27, 2026
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.
Part of the GUI redesign epic #238. Implements the core of Phase 2 (#236): consolidate every bespoke button onto the shared
.btnsystem + a new.icon-btnprimitive, fix the inverted header/label hierarchy, and tidy inputs/states.Buttons & primitives
buttons.css: add.icon-btn(28px square, ≥24px hit target),.btn--danger,.btn--warn,.btn--block. No.btn--success— green stays status-only per the design direction..btn--danger, Pause →.btn--warn, Send/Home/etc →.btn--secondary, refresh/clear/autoscroll/zoom →.icon-btn. Deleted the per-component.action/.cmd/.send/.vp__btn/.log__btnblocks. The streaming progress bar now carries the green (accent-color) — green = active status, not a resting button.--shadow-lg, panel surface, single border,z-index) that closes on outside-click / Escape; row controls →.icon-btn.Hierarchy & inputs
--color-text(dominant eyebrow), field labels →--color-text-labelat--font-size-sm.InspectorSectionheader is a clean hairline divider (no filled bar), reserving--color-bg-panel-altfor input wells; recessed the Manual Control input.NumberFieldadds the unit gutter only when a unit is present — removes the dead 48px gutter on unitless fields.States
Deferred → #243
Dialog focus-trap/restore +
aria-labelledby, help-glyph-as-button, shared empty-state component, and toast pause-on-hover are split into a follow-up (#243) to keep this PR reviewable.Verification
tsc,check:svelte(0 errors),lint:css,lint:css:vars, 316/316 vitest green.Refs #236