Unify interactive controls and single-line rows to pill and circle shapes
Summary
Context: Components across desktop (apps/desktop-gpui), shared web UI (packages/ui, packages/editor, apps/web), and mobile (apps/mobile) mixed pill/circle controls (such as switches, badges, Open calendar, and compact floating bars) with 4px–14px rounded rectangles on buttons, icon buttons, inputs, selects, segmented controls, and single-line menu/nav rows. On web, an older global border-radius: 0 !important rule in apps/web/src/styles.css and 8px JS squircle clips (useSquircleRef) on Button, Badge, SelectTrigger, and Avatar also prevented pill/circle shapes from rendering.
Intention: Unify single-line interactive controls and single-line navigation/menu rows to consistent pill and circle shapes across desktop, web, and mobile while keeping multi-line containers (cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows) as rounded rectangles.
Direction:
- Desktop (
apps/desktop-gpui):- Updated single-line interactive controls (buttons, square icon buttons, single-line
TextInputs/search bars, selects, segmented control tracks and items, chips/badges, floating single-line toolbars, collapsedAsk anythingbar, and audio player bar) and single-line nav/menu rows toradius::FULL, while preserving rounded-rectangle radii (SM–XL) on cards, popovers, dialogs, multi-line textareas, multi-line sidebar/contact/template/automation rows, checkboxes, keycaps, inline code, and thumbnails. - Adjusted horizontal pill padding across tight controls/rows and applied directional
.rounded_l(radius::FULL)/.rounded_r(radius::FULL)on flush split/segmented controls (where GPUI'soverflow_hiddenclips rectangularly). - Updated
apps/desktop-gpui/README.mdandui::theme::radiusdoc comments.
- Updated single-line interactive controls (buttons, square icon buttons, single-line
- Shared UI & Web (
packages/ui,packages/editor,apps/web):- Added
corner-shape: roundfor.rounded-full(and directional variants) inpackages/ui/src/styles/corners.cssso the global* { corner-shape: squircle; }rule does not square off pill/circle ends. - Removed 8px
useSquircleRefclips fromButton,Badge,SelectTrigger, andAvatar(now a clean circle), updatedInput,InputGroup(single-line pill, multilinerounded-xl),InputGroupButton,appFloatingItemClassName(dropdown/select/command items),AppToastactions,Dialogclose button, and@anlg/editorfloating toolbar / slash-command / attachment chips torounded-fullwith balanced horizontal padding. - Removed the global
border-radius: 0 !importantoverride fromapps/web/src/styles.css, unified remaining web inputs/icon buttons/menu rows/delta chips/audio player bar torounded-full, and updatedapps/web/AGENTS.mdandapps/web/BRAND.md.
- Added
- Mobile (
apps/mobile):- Set
Radius.controlandLISTENING_CONTROL_RADIUStoDesignRadius.pill(999), unifyingStartListeningButton,EditorAccessoryformat buttons,FolderPickerSheetsearch input & rows (withSpacing.mdhorizontal padding and continuous squircle curve), andNoteActionsSheetaction rows while keeping grouped insetCardlists and multi-line cards untouched.
- Set
Demo
N/A — visual pass across desktop, web, and mobile; desktop screens were rendered and inspected via tests/screens.rs (main, meeting-after, meeting-after-transcript, search-query, contacts-person, settings-intelligence, settings-transcription-provider-menu, settings-account-signed-in, settings-team-owner, settings-imports-detected, share-managed, transcript-selection-bar, calendar, chat-setup).
Verification
- Local:
apps/desktop-gpui:cargo fmt --check,cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings,cargo test --locked --workspace(1,052 lib + 23 a11y + 1 dictation_capture + 20 runtime lib + 15 library + 15 lifecycle +tests/screens.rs),cargo build --locked, andpython3 -m unittest discover -s apps/desktop-gpui/packaging(18 passed) — all passedpackages/ui&packages/editor:pnpm -F @anlg/ui build,pnpm -F @anlg/ui typecheck,pnpm -F @anlg/editor typecheck— passedpackages/supabase&apps/web:pnpm -F @anlg/supabase typecheck,pnpm -F @anlg/supabase test(36 passed),pnpm -F @anlg/web typecheck,pnpm -F @anlg/web test(403 passed),pnpm -F @anlg/web media:figures:check— passedapps/mobile:pnpm -F @anlg/mobile typecheck,pnpm -F @anlg/mobile test(354 passed) — passed- Common checks:
pnpm exec dprint check --allow-no-filesacross all changed files,pnpm exec oxlint --quiet --format=github apps/web/src/ apps/mobile/src/ packages/(0 errors), license-boundary Python checks — passed;node --testCI script suite 88/90 passed (2 Windows Store tests requirepwsh, unavailable locally on macOS).
- Not run locally: Windows/Linux GPUI native builds, iOS/Android native mobile builds, and full
apps/webproduction SSR bundle (covered by CI).
Summary by cubic
Unifies single-line interactive controls and single-line navigation/menu rows to pill and circle shapes across desktop (apps/desktop-gpui), shared UI (packages/ui, packages/editor), web (apps/web), and mobile (apps/mobile). Multi-line containers — cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows — keep rounded rectangles.
Shape policy
- Single-line controls (buttons, icon buttons, inputs, selects, segmented control tracks and items, chips, badges, floating toolbars, audio player bars) and single-line menu/nav rows use
radius::FULLon desktop,rounded-fullon web, andRadius.control = pillon mobile, with balanced horizontal padding. - Flush split and segmented controls get directional
.rounded_l(radius::FULL)/.rounded_r(radius::FULL)because GPUI'soverflow_hiddenclips rectangularly. - Removes 8px
useSquircleRefclips fromButton,Badge,SelectTrigger, andAvatar;Avataris now a clean circle.
Migration
Button.smoothCornersandSelectTrigger.cornersprops are removed; shape now comes from base classes.- Removes the global
border-radius: 0 !importantoverride fromapps/web/src/styles.css, so all radius classes now render. - Adds
corner-shape: roundto.rounded-full(and directional) variants inpackages/ui/src/styles/corners.cssso pill ends aren't squared off by the globalsquirclerule.