Skip to content

improve: revamp desktop styles - #4387

Open
richiemcilroy wants to merge 72 commits into
mainfrom
improve/desktop-style-revamp
Open

richiemcilroy wants to merge 72 commits into
mainfrom
improve/desktop-style-revamp

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

We are revamping the desktop app's styles. This pass gives the editor a calmer, roomier layout, a new timeline and smoother controls, and the shared components now read as one piece in light and dark.

Everything is painted with fills, gradients and shadows. There is no backdrop blur, so it looks the same on macOS, Windows and Linux and costs nothing per frame.

What changed

  • Palette and layout. The dark editor uses a deeper, cool ink, and light mode sits on a near-white window instead of grey. The player and timeline sit straight on the window; the side panel is the one raised surface. Popovers sit one step above the card they open over.
  • Text. On macOS, text now renders grayscale-antialiased without CoreGraphics stroke dilation, so it is crisper. Cap sets its own AppleFontSmoothing preference to 0 at launch, before gpui reads it. Windows and Linux renderers have no dilation, so they are unchanged.
  • Timeline. Segments are solid and glassy: deeper at the top, lit toward the bottom, with a lit top edge and a soft inner glow. Labels, values, icons and badges are white on every track. The twelve track colours are tuned so white clears 4.5:1 contrast in both themes, and a test enforces it. Tracks are 48px tall with 8px gaps. Lanes have no stripes at rest and tint on hover. A hovered segment glows in its own colour; a selected one glows more, with a thin white outline. Track icons are small pieces of their segment. A paused hold is a recessed rounded well inside the clip, and clip labels move into the first stretch clear of it. A fullscreen text segment leads with the same pause glyph. Track names and the Add track button are larger and easier to read, and the gutter always keeps room for a lane's delete button, so a label never runs under it.
  • Sidebar. Sliders show the label with its value on the right and a full-width track underneath, with an accent fill and a white knob. The panel has more padding and space between groups, and section titles are brighter. The cursor panel shows the five cursor styles as one row of tiles. Movement style is a four-way switch with a description underneath. In the Background tab, the sources are one scrolling row of pills with soft edge fades, and the selected one centres itself. A wheel or trackpad gesture over the row moves the row or the panel, never both: trackpad gestures go the way they mostly move, a notched wheel or Shift moves the row until it runs out. Wallpaper themes are quiet text tabs and the wallpapers are a 4-column grid of larger thumbnails.
  • Export page. The settings sit on the same raised card as the editor's side panel, without section icons or a header rule. Destination is three tiles, so Shareable link fits. Format is MP4, GIF and More; separate tracks sit under More as a card, and each track is a checkable row. GIF frame rates are 10, 15 and 30. Progress and results sit on a raised card over a dark scrim in both themes. A finished file can be opened or copied to the clipboard, a finished link copied or opened, and Back to editor is a quiet link. The Export button matches the editor's.
  • Turbo export starts on for new users; anyone with saved export settings keeps what they had. Plainer copy.
  • Captions on the preview can be hovered, moved and resized in any placement. Dragging a caption at a preset spot switches it to Manual at that spot; the corner handles scale its size within the slider's range.
  • Tab fades. Switching Style, Transcript and Clips, or the sidebar's tabs, fades the new content in over 180 ms. The fade is a cover in the card's colour over the cached panel, so the content paints once and one rectangle repaints per frame. Reduce Motion skips it.
  • Empty states. Camera and Cursor stay clickable without a camera or cursor data and explain what is missing. The shared panel empty state puts its icon in a small raised tile.
  • Key presses as keycaps. The key-press overlay can draw real keys instead of one rounded label: one key per modifier then the key it modifies, typed text on one long key. Keys have a lit face, a shaded skirt, a bevel, matte grain and contact and ambient shadows, and dip when struck. Styles: macOS (a MacBook Pro's flat keys in their black well, printed as Apple prints them), Windows, Linux (sculpted keys), Mechanical and the classic label; themes: light, dark and retro. Each keyboard is set in a fitting embedded typeface (Inter, Selawik, Ubuntu, IBM Plex Sans; licences in crates/rendering/assets/fonts/keycaps) so exports match on every platform. Projects saved before this keep the classic label; new projects start with their platform's keys. The Keyboard tab picks style and theme from tiles that preview each key.
  • Shortcuts like a demo. New projects show key presses as shortcuts only: presses with a modifier, not Shift on a letter. Single keys are optional and never shown while typing. Repeats within two seconds share one label and strike the key again; a label appears just before its press, lingers 1.5 s and stops before the next. Typing can be turned back on, and older projects keep it. Apple keys are flat and borderless, symbol over word on the left, command first, return as its arrow, and pop in with a slight overshoot. Keys default to about a tenth of the frame's height. Older projects with an unstyled label get the platform's keys; ones with chosen colours or font keep the classic label. In release, a keycap frame prepares in the same time as the classic label (p50 about 5 us, p95 about 15 us).
  • Mechanical keys. A new key style draws tall, cylinder-dished caps seen from the front: a deep front wall, tapered sides and a sliver of back wall, each lit by the way it faces, with the face rolling into the walls. Every key is one plastic on the light and dark themes; retro keeps its grey modifiers beside cream letters. They print the legends of the platform they run on. At 4K the GPU draws a row of keys in about 0.09 ms at rest, like the other styles, and about 0.49 ms while keys glide with motion blur (macOS keys: 0.35 ms).
  • Key symbols. Every key symbol prints in the keycap face whatever the key's own face, so Shift and the other modifier marks no longer fall back to a system font on the retro theme, and Windows and Linux arrow keys look the same on every platform. The shift and caps lock arrows are redrawn to stand at cap height beside command and option. Existing styles render pixel-identical apart from those glyphs.
  • Keyboard track. Each press is drawn only until the next begins, as the overlay shows it, instead of piling up. Typed words read as plain text; shortcuts show as small keys that are never cut in half, with +N for keys that do not fit. Labels keep clear of the trim handles, and short presses show their handles only on hover or when selected. A key's sidebar has a Key Style button that opens the Keyboard tab.
  • Key and click sounds. Optional, off by default, in the Keyboard tab (under the key theme) and the Cursor tab (next to Click Ripple). Keys: Mechanical, Deep, Laptop and Typewriter; clicks: Mouse and Trackpad; each with its own volume, and picking a type plays a short preview. Key sounds play for presses whose keys are on screen; click sounds only while the cursor is shown, and muted clips stay silent. Every press gets its own sample, a little pitch, level and pan by key position, all seeded from the press so preview and export match; space, return, delete and modifiers have their own samples, and keys sound on release as well as press. Times follow the keyboard track's mapping through cuts, speed changes, transitions and holds. The sounds are CC0 recordings from Freesound (sources and licences in crates/editor/assets/input-sounds/README.md), mono Opus, 326 KB in all, decoded once and only when a pack is first used. With both toggles off the audio is byte-identical to before and no pack is decoded. With them on, a 1024-frame block renders in 1.4 us on average (8.5 us p99), and a 1080p export takes no measurably longer.
  • Blank projects. New, in the library header and the File menu, opens an empty Studio project with no recording: an animated background and a 15-second clip that stretches to ten minutes, to build a video from music, keys, text and images. It carries a blank flag beside audioOnly, so its two-frame placeholder display (28 KB on disk) is never drawn, and the editor keeps its normal preview and exports.
  • Typing keys onto the video. The Keyboard tab has a composer: type a sentence, or a shortcut in words (cmd+shift+p), and press Enter. It shows at the playhead, sized to be typed and read, and the playhead moves on so the next entry follows. Show As picks how a sentence appears: a key per word (the default), a key per keystroke, or the whole sentence on one key. A word arrives a letter at a time, each on its own key, struck and springing back as the row slides to make room, then its letters glide together and the word's key grows out of them. A live preview shows the keys before they land, and says when a + did not make a shortcut. Clicking the keyboard track also adds a key. Keys added by hand strike and sound like recorded ones, survive regenerating from a recording, and grow to fit when retyped.
  • Key position. Keys can sit on the frame's middle row as well as the top and bottom, picked on a small frame with nine spots instead of a dropdown.
  • Dither backgrounds. Animated backgrounds have a style: an ordered 8x8 Bayer dither of their own palette, drawn at full resolution so it stays crisp at every export size, or the smooth wash they had. Dither is the default for new animated backgrounds; one saved before keeps its smooth look. Dither has a cell size and no lighting or grain to tune, and picking a template or a shuffle keeps the chosen style.
  • Caption defaults. New captions start at the Classic preset's size with the spoken word highlighted; projects saved before the highlight setting keep it off.
  • Looks. The Presets menu opens with eight built-in looks (Smooth Demo, Mac Native, Midnight, Minimal, Launch Day, Tutorial, Web Product, Retro Desk), each a small live preview. A look sets background, padding, rounding, shadow, border, frame, zoom motion, cursor glide, keys and caption style, and leaves the timeline, camera and audio alone. One undo step.
  • Interaction. Hover fills on editor buttons, segmented options and the tab rail fade in over 90 ms and out over 220 ms, instead of snapping. The selected pill in segmented controls glides between options. Filled buttons get a vertical sheen, a lit top edge, a pressed state and, for accent buttons, a soft tinted glow.

Screenshots

In each image the top half is before and the bottom half is after.

Editor, dark
Editor dark

Editor, light
Editor light

Timeline with many tracks, dark
Timeline dark

Timeline with many tracks, light
Timeline light

Sidebar: the Cursor tab before and after, then the Background tab before and after
Sidebar dark
Sidebar light

Testing

  • cargo test --bin cap-gpui: 2112 passed, 0 failed locally, plus 522 rendering and 337 project tests, and the translation catalogue checks pass. New tests cover the hover fade timing, the pill glide state, centring a source pill, wheel and trackpad routing over the source row, label placement around holds, and contrast for every track's labels, values and badges in both themes.
  • The timeline layout test now expects 268px for four tracks, from the taller rows. The click and hover mapping tests now derive the content column from the wider gutter.
  • Debug builds of main and this branch compared in both themes across the sidebar tabs, a selected zoom, and a project with clip, style, text, mask, scene, 3D, keyboard and zoom tracks.
  • The timeline keeps a transparent 1px border, so hit-testing and seeking line up exactly as before.
  • No new compiler warnings.

RetriggerView in GreptileConfidence Score: 5/5

No new merge-blocking issue was found in the follow-up changes.

Summary

This PR refreshes desktop styling and adds keycaps, input sounds, blank projects, and built-in looks. The latest changes refine composed keys and remove an unused position menu.

  • The editor uses roomier cards and brighter, smoother controls.
  • Keyboard overlays can use platform keycaps and accept new entries.
  • Captions can be moved and resized on the video preview.
  • Key presses and cursor clicks can add sound to playback and exports.
  • The recordings library and File menu can open a blank Studio project.
  • Animated backgrounds can use a crisp dithered palette or a smooth wash.
  • The Presets menu offers eight previewable looks for a project.
  • The export page groups common formats and adds clearer result actions.

No new independent findings. The earlier overlapping-caption thread was manually resolved without explanation.

Reviews (35) · Last reviewed commit: "fix: keep shift shortcuts whole, show a ..." · Reviewed by Greptile

@sandchest-com

sandchest-com Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 0c6a1a0: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · 8 credits · Review details

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 2 other findings in Capy.

Open in Capy

Comment thread apps/desktop-gpui/src/editor_window.rs Resolved
Comment thread apps/desktop-gpui/src/ui/segmented.rs Resolved
Comment thread apps/desktop-gpui/src/ui/segmented.rs Resolved
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Nov 19, 2026 6:34pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:18 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 1 potential issue (1 medium).

View 2 other findings in Capy.

Open in Capy

Comment thread apps/desktop-gpui/src/theme.rs Resolved
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:32 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 1 potential issue (1 medium).

Open in Capy

Comment thread apps/desktop-gpui/src/theme.rs Resolved
Comment thread apps/desktop-gpui/src/theme.rs Resolved
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:36 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:38 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 2 other findings in Capy.

Open in Capy

… for the recording's platform

A caption's corner resize follows the position the renderer drew it at, its
own override included. The timeline builds its keys for the platform the
recording was made on, as the preview and exports draw them.

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 5 other findings in Capy.

Open in Capy

New, in the library and the File menu, opens an empty Studio project with no
recording: an animated background and a clip that runs up to ten minutes,
to build a video from music, keys, text and images. The project carries a
blank flag, so its placeholder display is never drawn, as for audio-only
recordings, and it takes 28 KB on disk.

Clicking the keyboard track adds a key press by hand. Its text can be a
shortcut in words (cmd+shift+p) or typed text, and it strikes and sounds its
keys like a recorded one. Regenerating from a recording keeps keys added by
hand, and a split of one stays hand-made.
@blacksmith-sh

This comment has been minimized.

The Keyboard tab has a composer: type a sentence or a shortcut in words
(cmd+shift+p) and press Enter, and it shows at the playhead, sized to be
typed and read, with the playhead moving on so the next entry follows.
Retyping a key added by hand grows it to fit.

Animated backgrounds gain a style: an ordered dither of their own palette,
crisp at every size, or the smooth wash they had. Dither is the default for
a new animated background; one saved before keeps its smooth look. A dither
has a cell size to tune and no lighting or grain; picking a template or a
shuffle keeps the style chosen.
…e, and preview typed keys

Keys can sit on the frame's middle row: left, centre or right. The Position
dropdown becomes a small frame with nine spots, the chosen one holding a
key, so the choice reads as the video will. The key composer previews what
Enter will add as it will show, and says when a + did not make a shortcut,
so a typo reads before it lands on the video.

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 5 other findings in Capy.

Open in Capy

…ly controls from blank projects

The position frame takes the panel's width at the video's shape. A blank
project has no recording to generate key presses from, so the Keyboard tab
leaves out the generate button and its empty state.
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 19, 2026 17:55 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

Comment thread apps/desktop-gpui/src/editor_edits.rs Resolved
Comment thread crates/project/src/input_sounds.rs Resolved
Comment thread apps/desktop-gpui/src/editor_tabs.rs Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 1 potential issue (1 medium).

View 3 other findings in Capy.

Open in Capy

Comment thread apps/desktop-gpui/src/editor_tabs.rs Resolved
The key composer's Show As picks how a typed sentence appears: a key per
word, typed out letter by letter (the default), a key per keystroke, or the
whole sentence on one key. The pieces follow each other back to back from
the playhead, each held a beat, the last held to be read. Text typed into
the composer types out whether or not recorded typing is shown.

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 1 potential issue (1 medium).

View 2 other findings in Capy.

Open in Capy

Comment thread apps/desktop-gpui/src/editor_window.rs Resolved
A word typed into the key composer arrives a letter at a time, each on a
key of its own with its capital printed, struck and springing back as the
row slides to make room. A beat after its last letter, or as soon as a
space ends it, the letters glide together and the word's key grows out of
the span they covered. Each word is held long enough to come together and
be read.
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

Comment thread apps/desktop-gpui/src/editor_window.rs Resolved
Comment thread crates/project/src/keyboard.rs Resolved
Comment thread crates/rendering/src/layers/keyboard.rs Resolved
Comment thread crates/rendering/src/layers/keyboard.rs Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 4 other findings in Capy.

Open in Capy

…how, and let Bottom Center replace above-captions

Splitting a key added by hand keeps both halves hand-made in the keyboard
track's own split, so the second half keeps its sounds and survives
regenerating. Recorded presses sound only under recorded keys, not under a
key added by hand over them. A project saved with keys above the captions
lights Bottom Center in the picker, and clicking it now writes it.
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 19, 2026 18:28 Inactive

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

A run of keys typed into the composer that is longer than the clip is
scaled by the length it asked for, so every key lands inside the clip in
order instead of the last ones being cut or stored inverted past its end.
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 19, 2026 18:31 Inactive

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 2 other findings in Capy.

Open in Capy

…and keep earlier letters' print still

Typed keys with Show As set to Keys keep a shortcut with Shift (shift+tab)
on one key press. A space struck on its own in the composer shows as the
space bar instead of nothing. While a word types out, only the letter just
struck dips, its print with it.
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 3 other findings in Capy.

Open in Capy

This branch was successfully deployed

1 active (outdated) and 1 inactive (outdated) deployments
Preview – cap-status — 6ab8cf2c Deployed Nov 19, 2026 by vercel[bot]
Preview – cap-web — fc39b433 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant