Skip to content

feat(overlay,gui): add four Actions Ring themes beside the classic one - #1904

Open
Levgenij wants to merge 40 commits into
AprilNEA:masterfrom
Levgenij:feat/overlay-ring-skin
Open

Levgenij wants to merge 40 commits into
AprilNEA:masterfrom
Levgenij:feat/overlay-ring-skin

Conversation

@Levgenij

@Levgenij Levgenij commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds four more looks for the Actions Ring as themes beside the current one, which stays as Classic and stays the default: In Motion, Obsidian, Obsidian Signal and Porcelain. Each device picks its theme in the Actions Ring panel.

In Motion gives every slot a pill with its icon and its caption:

  • a glowing hub, thin HUD rings and spokes;
  • gradient arcs that drift while idle and park on the hovered slot;
  • a short bubble-in on open and bubble-out on activate or cancel;
  • hovering a slot opens the hub into a circle that shows the slot's full caption.

The other three come from a designer's HTML prototypes and keep their captions in or under the slot, so nothing has to be hovered to be read; a slot truncates a long one, and the hub opens around the whole of it on hover.

With the OS reduce-motion preference on, every animated theme opens and closes without animation, and nothing drifts, lifts, turns, springs or presses.

Themes

  • Classic: the current ring, unchanged: its Ring size setting, its direction-based aiming, and where it lands near a screen edge. Named for what it is rather than for being the default, since the TOML name is append-only and another theme may become the default one day.
  • In Motion: the redesign above, in a 480 px window that shrinks to the display's shorter side when the display is smaller than that.
  • Obsidian: dark glass cards (icon above caption) on a dial of orbit lines and ticks, around a hub that opens around the hovered action's glyph and its whole caption, wrapped, as In Motion's does. A mint sector and dot turn the short way to face the hovered card; a lit halo springs up under it, running a touch past full size, with its light following the pointer; a click sends a wave out from the card and a flash through the hub. The cards and hub let a little of the desktop through. 440 px, shrinking like In Motion. The glass is imitated with light and inset shadows, since GPUI blurs whole windows only and the ring's window is a square.
  • Obsidian Signal: Obsidian's cards, dial and hub on one opaque graphite chassis that holds the whole ring. A card presses in under the pointer and rounds from its box into a circle with its glyph and caption still inside, without moving; a click presses it further and plays Obsidian's wave and flash; the hub presses in under the pointer and closes the ring. 400 px, shrinking like In Motion.
  • Porcelain: a light theme. Ceramic discs with their captions under them, on one opaque glazed platter that holds the whole ring, around a hub that opens around the hovered action's glyph and its whole caption and closes the ring. A terracotta needle inside the platter's inset ring turns the short way to point at the hovered disc, runs a little past it (4% of the turn, at most 4°) and settles; the disc presses in under the pointer as its caption warms; a click presses it further and draws a short stroke under the caption. 400 px, shrinking like In Motion.

Obsidian, Obsidian Signal and Porcelain open by gathering their slots out from the centre as the dial grows in, and close by gathering them back; a ring closed part way through its opening carries on from where it got instead of jumping to full size first. The prototypes' bubbles, particles and persistent selected state are left out by design.

The four themes keep hit-tested slots: a slot is chosen while the pointer is over it, and leaving it reports the ring unhovered, so a held trigger released between slots chooses nothing, as with master's release-to-select. Ring size applies to Classic only; each theme has its own size, and shrinks to a display shorter than it.

The choice is saved per device as theme = "in_motion" (obsidian, obsidian_signal, porcelain) under [devices."…".action_ring]. A config without the field loads Classic, so there is no schema bump. The picker is a select rather than a toggle because more themes are planned: a new one is an ActionRingTheme variant, its panel, its style module and a locale key.

Theme switcher

Classic (taken before master's ring redesign; Classic always draws master's ring)

In Motion

Obsidian

Obsidian Signal

Porcelain

Video

2026-10-30.11-29-51.mp4

Changes

  • openlogi-core: ActionRingTheme { Classic, InMotion, Obsidian, Porcelain, ObsidianSignal } (declaration order is the wire order, ALL the picker's) and ActionRingConfig::theme; Config::set_action_ring_theme.
  • openlogi-ipc: ActionRingInvocation::theme appended, and the four theme variants with it. They open v47, one past master's v46, so the constant and the pinned-version assertion move. The ring golden gains the trailing theme byte and ActionRingTheme gets goldens of its own.
  • openlogi-agent-core: ActionRingSessionSpec::theme, from the triggering device's ring config.
  • openlogi-overlay
    • ring.rs: master's ring, with a few hooks: the theme modules, a look: RingLook field built from the invocation's theme, slot_caption for the captions, and an early render_themed for every theme but Classic.
    • ring/look.rs (new): everything a theme needs from the ring view. RingLook { Classic, InMotion(skin::Motion), Obsidian(obsidian::Motion), Porcelain(porcelain::Motion), ObsidianSignal(obsidian_signal::Motion) }, so a classic ring carries no motion state and cannot be mid-exit, with is_closing and begin_close on it. panel_edge(theme, size, available) and WindowEdge { design, shrinks } are the one decision on the ring's size: Classic takes Geometry::of(size) on every display, the themes their design edge or the display's shorter side. RingView::close owns closing for every theme: an animated ring with motion on plays its exit and then removes itself, everything else dismisses at once. A card click starts the exit through RingView::close, and the chosen slot lives in that exit: motion::Exit::begin records it and starts the exit together, and refuses once an exit plays, so a second click or a click after a cancel cannot change the pressed card. hover_slot reports Hover { slot: None } when the pointer leaves the hovered slot. render_themed advances the clocks in the one arm that holds the look and hands the panel a copied frame to draw from.
    • ring/motion.rs (new): what every animated theme moves with, lifted out of the skins so the next theme copies nothing: the In Motion presence; the stage the three newer themes open and close on (the dial's growth plus each slot's reach, scale and opacity with a stagger, the opening still running under a closing); keyframe interpolation; a frame-rate-independent spring; the click's press; easing curves, path builders, the colour reader and the shadow blend.
    • ring/skin.rs (new): the In Motion panel. Pill slots (132×34) with icon and caption at a 160 px radius, hub glow, HUD rings and spokes, gradient arcs, hover bubbles, and enter/exit motion with reduce-motion fallbacks. Hovering a slot eases the hub open into a 136 px circle carrying the slot's whole caption. Unit tests cover the motion math and the scaled layout.
    • ring/obsidian.rs (new): the Obsidian panel and its clocks: per-card hover lift, the halo on a spring that fades out quicker than it fades in so moving between cards never shows two, the pointer light read from window.mouse_position() each frame (no move handler), the aim angle with shortest-turn easing that holds its heading and fades when nothing is hovered, the halo rim's 440 ms arrival turn, the 420 ms click wave and the 290 ms hub flash. The 48 ticks are one stroked path; the sector is six filled steps. The dial painters, the aim and click clocks and the hub are shared with Obsidian Signal, which draws them at its own size. Tests pin the card radius, that neighbouring cards never overlap down to 240 px, the halo's spring, and the wave, flash and aim clocks.
    • ring/obsidian_signal.rs (new): the Obsidian Signal panel: the chassis, the card that rounds from its 92×64 box into an 80 px circle under the pointer with sunk shading, the hub's press-in, and Obsidian's dial, wave and flash. Tests pin that every card and its circle sit on the chassis, non-overlap down to 240 px, the morph's end points and the press.
    • ring/porcelain.rs (new): the Porcelain panel and its clocks: the needle's 300 ms turn the short way with its capped overshoot and its 140 ms fade when nothing is hovered, the press-in shading under the pointer, the 240 ms disc press and the 300 ms stroke under the caption on a click, and the hub opening around the hovered action and pressing in as the dismiss button. The needle is one filled capsule path. Tests pin the node radius on the platter, non-overlap down to 240 px, the needle's turn, overshoot and fade, the press and stroke, the hub's press and the gather in and out.
    • platform/motion.rs (new), with motion/{macos,windows,linux}.rs: the OS reduce-motion preference, read before every ring opens, off the UI thread, as Option<MotionSetting> with Full and Reduced named (NSWorkspace on macOS, SPI_GETCLIENTAREAANIMATION on Windows, GNOME's enable-animations through gsettings on Linux, with a 200 ms kill). The last good read stands in for a failed one. The reads are feat(overlay): Actions Ring tooltips, hover inversion and motion, with plan and prototype #2013's, with co-authorship, laid out as its review asked: one file per OS behind a facade that owns the setting and the cache.
    • session.rs: settle_latest_invocation races the read against newer invocations, so a dismissal or a newer request that arrives during the read wins; it lives here with the rest of the ring-session sequencing, and platform keeps only the OS read.
    • platform/windows.rs, platform/placement.rs, main.rs: every placement path sizes the window through WindowEdge. Master's Windows placement tests stay as they are; new ones check where the themes land.
    • session.rs: close_all_ring_windows leaves a ring that is already playing its exit alone; it removes itself when the animation ends.
  • openlogi-ui: ring_style (new), the sizes, colours, fills and shadows of every theme at rest, read by the overlay and by the editor's preview, so the preview cannot drift from the ring the way a copy would; the pill's padding, gap and caption inset included. Obsidian's module carries its own mint and violet palette; Obsidian Signal's takes everything it shares from Obsidian's and owns only its chassis, cell shapes and shadows; Porcelain's carries its own ceramic and terracotta one. None of them use the brand blue. Motion stays in the overlay. Plus seven action_ring.theme* keys in every catalog; non-English values are first drafts for Crowdin, the theme names stay as they are.
  • openlogi-desktop: a Theme select in the Actions Ring panel (stacked_row + control_select) that follows the selected device, and action_ring/themed_preview.rs (new) with a preview for each theme: the ring at rest, shrunk to fit, captioned by each slot's custom label where one is set, with the selected slot in its hovered state. Classic keeps master's preview. In Motion shows dark and white pills, hub glow and HUD tracks; Obsidian the soft disc, orbit lines, hub and glass cards (its ticks, sector and dot are hover state and are left out of the still); Obsidian Signal the chassis, dial and hub with the selected card rounded into its circle; Porcelain the platter, inset ring, hub and ceramic discs (its needle likewise). The themed previews stay dark whatever the app's appearance, over a grey stage standing in for the desktop. A test draws every theme and checks each shape appears for its theme only.
  • docs/CONFIGURATION.md, README.md: the theme key and how the themes choose and close.
  • .agents/rules/objc-ffi.md: the overlay's NSWorkspace read joins the FFI inventory, at platform/motion/macos.rs.

Things worth a look

  • Wire change: v47. ActionRingInvocation gained a field and ActionRingTheme its variants. Master is on v46, so these open v47 and a released agent refuses a build of this branch at connect instead of disagreeing on the wire. Dev builds of the agent and overlay from before and after this PR do not interoperate either; rebuild both.
  • Reduce motion on Linux reads GNOME's setting only; KDE and other desktops keep motion on, as in feat(overlay): Actions Ring tooltips, hover inversion and motion, with plan and prototype #2013.
  • Under reduce motion every theme snaps its clocks: no lift, halo, wave, flash, needle turn, press or morph, and a click right after closing reaches the window underneath. Obsidian's halo light stays where the prototype's default is.
  • Per-frame cost is about In Motion's for each: Obsidian draws two orbits, one tick path, six sector steps, three dot discs, at most one wave, and a halo only while one is visible; Obsidian Signal the same dial and eight cards with no halo; Porcelain three paths for the needle while it shows, and divs otherwise.
  • Porcelain is a light theme on a dark-by-default app. Its platter is opaque, so it reads over any desktop, and the preview's grey stage stands in for that.
  • No Windows square-fill workaround any more. The earlier chrome.rs is gone: make_frameless from fix(overlay): draw the Windows Actions Ring without a window frame #1913 already keeps the square, border and shadow off the transparent ring window. Checked on Windows 11 with every theme.
  • The three items from the 7e722bd re-review are in: settle_latest_invocation moved to session, the reads split per OS behind platform/motion with MotionSetting, every animated panel drawn from a copied frame, and the pill layout shared through ring_style::in_motion.
  • Not tested on macOS or Linux. The panels are platform-neutral GPUI; the macOS and Linux reduce-motion reads are feat(overlay): Actions Ring tooltips, hover inversion and motion, with plan and prototype #2013's code and carry its tests. The branch merged fix(overlay): keep the macos actions ring from taking key focus #2152's NSPanel change with the NSWorkspace read by hand in platform.rs and in the overlay's objc2-app-kit features; the macOS clippy job is the check on that.

Testing

export RUSTFLAGS="-D warnings"
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items \
  --exclude openlogi-ui --exclude openlogi-desktop --exclude openlogi-overlay --exclude openlogi-agent
cargo xtask ci ast-grep
cargo check -p openlogi-hidpp -p openlogi-device --target wasm32-unknown-unknown
cargo check -p openlogi-core --no-default-features --target wasm32-unknown-unknown

Green on Windows 11 with rustc 1.99.1 after merging master at 0cae2818, except two failures that happen on master as well: clippy's double_must_use in openlogi-hidpp/src/channel/raw.rs, and app::deeplink::tests::an_app_profile_link_opens_the_profile_the_selected_device_runs_the_app_under in openlogi-desktop. The Linux and macOS clippy jobs cannot be reproduced on this host and are CI's; platform/motion/{macos,linux}.rs are a move of #2013's reads with the setting type swapped in, audited by hand.

Runtime-tested on Windows 11 with an MX Master 4 over Bluetooth, release builds of the agent, overlay and GUI, before the master merge (not yet repeated after it):

  • switching the theme in the panel, with the choice persisted to config.toml, and the preview following it;
  • opening, hovering, activating and cancelling the ring in all five themes; in Obsidian the halo springing up with its light following the pointer, the sector and dot turning to the hovered card, the rim's arrival turn, and the wave and hub flash on a click; in Obsidian Signal the card rounding into its circle and pressing in, and the hub pressing in; in Porcelain the needle turning to the hovered disc with its overshoot, the disc pressing in, and the press and stroke on a click;
  • Classic opening at the same spot near a screen edge as a master build;
  • In Motion with Windows' "Animation effects" off: no motion, and a click right after closing reaches the window underneath. The three newer themes are not yet checked with it.

Not run on macOS or Linux.

@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5RetriggerView in Greptile

[Medium impact] The changes reach the Actions Ring settings, agent-to-overlay requests, and ring display workflow.

Add the required timeouts to the new async tests before merging.

Findings

  1. P1 Tests can wait forever ▶

Summary

Adds four per-device Actions Ring themes while keeping Classic as the default.

  • Each device can choose a ring theme in the Actions Ring panel.
  • The ring gains four looks with captions and distinct visual details.
  • Themed rings choose slots by pointer and follow system motion settings.

Earlier findings were checked against the current diff. None of the supplied root threads included a Comment number.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Open ring] --> B{Close request}
    B --> C[Exit stores time and choice]
    C --> D[Send final command]
    D --> E[Draw closing frames]
    E --> F[Remove window]
    C --> G[Later close requests refused]
Loading

Reviews (17) · Last reviewed commit: "refactor(overlay): make the ring's choic..." · Reviewed by Greptile

@davidbudnick davidbudnick added area: gui Graphical user interface platform: all Cross-platform issue type: feature New feature request labels Oct 19, 2026
@Levgenij
Levgenij force-pushed the feat/overlay-ring-skin branch from 3e5ae87 to 5099b14 Compare October 20, 2026 08:39
@Levgenij
Levgenij force-pushed the feat/overlay-ring-skin branch from 5099b14 to 5b11917 Compare October 22, 2026 22:30
Comment thread crates/openlogi-overlay/src/ring.rs Resolved
@Levgenij Levgenij changed the title feat(overlay): redesign the Actions Ring with captioned pills and motion feat(overlay,gui): add an In Motion Actions Ring theme beside the classic one Oct 28, 2026
@Levgenij
Levgenij force-pushed the feat/overlay-ring-skin branch from e0d26e9 to f4d27a0 Compare October 28, 2026 12:47

@AprilNEA AprilNEA left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the theme split and the green CI. Which Actions Ring direction ships (#1280, #2013 or this PR) is a maintainer decision, so this is not a merge yet. Findings on f4d27a0:

  • crates/openlogi-overlay/src/ring/skin.rs:168: cx.reduce_motion() is always false in the overlay. GPUI 0.3.4 never reads the OS setting, and the overlay never calls set_reduce_motion, so In Motion animates even with Reduce Motion on. Read the OS preference before the ring opens (#2013 has the macOS, Windows and GNOME reads), or remove the claim from the PR body.
  • crates/openlogi-overlay/src/ring.rs:28 and :36: the 480 px window and panel_edge apply to both themes. A Default ring near a screen edge now clamps 60 px further in than on master. Make the design edge a property of the theme (360 for Default, 480 for In Motion), and pass the theme into RingPlacement::capture (main.rs:118) so every placement path uses it.
  • crates/openlogi-overlay/src/ring.rs:102: every RingView carries skin::Motion, and is_closing (skin.rs:131) lives in the In Motion module, but session.rs calls it for both themes. Model the look as an overlay-side enum RingLook { Classic, InMotion(skin::Motion) } with From<ActionRingTheme>, and put is_closing and the render dispatch on it (.agents/rules/rust.md: invalid states unrepresentable).
  • crates/openlogi-core/src/binding/action_ring.rs:300: ActionRingTheme::Default serializes as "default". That name becomes wrong when another theme becomes the default, and TOML names are append-only. Rename the variant to Classic (the module is already ring/classic.rs) and keep #[default] on it.
  • crates/openlogi-overlay/src/platform/windows/native/chrome.rs:25: make_frameless (native.rs:219, from #1913) already owns overlay window chrome. clear_square_fill adds DWM attributes and class-level changes that reach every overlay window through the shared class (chrome.rs:38), but it runs only on the ring path. Move the DWM attributes, class style, brush and accent policy into make_frameless, and keep only the elliptic region in RingPlacement::show (AGENTS.md, "Single source of truth").
  • Split two changes into their own PRs: the Windows square-fill fix (chrome.rs plus the windows-sys feature) and the 8 MiB main stack (crates/openlogi-desktop/build.rs:65, crates/openlogi-overlay/build.rs:38). Both apply to every theme. For the stack PR, name the frame that overflows. The linker flag changes release binaries to work around an overflow that only debug builds hit.
  • crates/openlogi-overlay/src/ring/skin.rs:454: both themes use slot_caption, and classic.rs:13 imports it from skin. Move it to ring.rs so neither theme depends on the other.
  • crates/openlogi-overlay/src/ring/skin.rs:157: skinned_panel has two doc summaries. The first one is stale.
  • crates/openlogi-overlay/src/ring/skin.rs:137: with reduce motion on, close keeps an invisible window for the full 196 ms EXIT, and that window swallows clicks. Dismiss at once in that case.
  • crates/openlogi-desktop/src/features/action_ring.rs:354: ring_preview always draws the Default disc, so a user who picks In Motion sees no preview of it.

@AprilNEA AprilNEA added the needs: decision Needs a maintainer/product decision label Oct 28, 2026 — with Manus Connector
@Levgenij
Levgenij force-pushed the feat/overlay-ring-skin branch from f4d27a0 to b5ea1a9 Compare October 28, 2026 15:17
@Levgenij

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough read. Everything below is on the branch now, rebased onto master. Taking your points in order:

  • Reduce motion: the overlay now reads the OS preference before each ring opens. I took the read, its cache and the settle loop from feat(overlay): Actions Ring tooltips, hover inversion and motion, with plan and prototype #2013 as they are, with a Co-authored-by for @ssk090, so whichever of the two PRs lands second rebases onto the other's copy. The PR body no longer claims more than that: Linux reads GNOME only.
  • Window size per theme: panel_edge(theme, available) gives Classic its 360 px window on every display and In Motion 480 px or the display's shorter side. RingPlacement::capture takes the theme on every platform. A Windows placement test pins Classic to the exact master coordinates, edge clamp included.
  • RingLook: RingLook { Classic, InMotion(skin::Motion) }, built from the theme, with is_closing and the render dispatch on it. The classic panel no longer carries motion state.
  • Classic: renamed, with #[default] kept and the locale key renamed to match. Nothing released ever wrote "default".
  • chrome.rs / make_frameless: dropped rather than moved. With fix(overlay): draw the Windows Actions Ring without a window frame #1913's make_frameless alone, neither theme shows a square, border or shadow on Windows 11, so the extra DWM, class-style and accent work had nothing left to fix.
  • The 8 MiB stack: out of this branch. It gets its own PR once I have the overflowing frame from a debugger, rather than a linker flag that also touches release binaries.
  • slot_caption: in ring.rs; neither theme imports the other now.
  • skinned_panel doc: the stale paragraph is gone.
  • Close under reduce motion: one RingView::close for both themes. Only an In Motion ring with motion on plays the exit; everything else dismisses at once, so no invisible window stays to swallow a click.
  • Preview: the editor now draws the ring at rest from openlogi_ui::ring_style, the same sizes, colours and fills the overlay paints with, so a device on In Motion sees pills, hub glow and tracks, and Classic sees its disc and under-hub label. Only the motion is left out. A test draws both themes.

Full local gate is green on Windows (fmt, clippy workspace, workspace tests, rustdoc, ast-grep). Still not run on macOS or Linux.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026

Copy link
Copy Markdown

Want your agent to iterate on Greptile's feedback? Start a greploop in Codex and it will work through the open comments and keep going until this PR reviews clean.

@AprilNEA AprilNEA left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Re-reviewed 7e722bd. All ten points from the last review are resolved, and CI is green. The direction is still a maintainer decision.

The reduce-motion code is now byte-identical to #2013, so the structural notes from that review (#2013 (review)) apply here too. Three small items remain. I will push them to this branch myself once the direction is decided, unless you get there first:

  • crates/openlogi-overlay/src/platform.rs:267 (settle_latest_invocation): it picks which invocation opens, which is ring-session sequencing. Move it next to the invocation loop in main.rs or session.rs, so platform keeps only the OS read. Move the macOS, Windows and Linux reads (platform.rs:224) into platform/motion.rs with motion/{macos,windows,linux}.rs (.agents/rules/rust.md, "Platform-divergent code"). Return Option<MotionSetting> with enum MotionSetting { Full, Reduced } instead of Option<bool> and the two !enabled flips (platform.rs:231, :239).
  • crates/openlogi-overlay/src/ring/skin.rs:134: skinned_panel matches self.look again and falls back to unreachable!. Advance the clocks in the RingLook::InMotion(motion) arm of render, and pass a copied frame (hover_t, arc_angle, hub_t, presence, elapsed) into skinned_panel. Then the invalid case cannot be written.
  • The pill gap 6.0, padding 12.0 and caption inset 40.0 appear in both ring/skin.rs:247-262 and crates/openlogi-desktop/src/features/action_ring.rs:617-633. Move them into openlogi_ui::ring_style::in_motion next to PILL_W and PILL_H.

@Levgenij

Copy link
Copy Markdown
Contributor Author

The stack change is now its own PR, #2126, with the overflowing frame named: _RUST_I18N_BACKEND::closure/usr/bin/bash, the initializer rust_i18n::i18n! generates, whose prologue asks __chkstk for 0x1352C0 bytes on the 1 MiB main thread. It applies the 2 MiB reserve to the two GUI binaries in the debug profile only; release binaries are unchanged (dumpbin shows 1 MiB on both). The square-fill fix needs no PR: with #1913 alone neither theme shows the square on Windows 11, so this branch just drops the workaround.

The stock ring showed eight bare icons on a dark disc, and on Windows the
transparent window still carried a square DWM card behind it. Replace the
panel with pill slots that carry the action's icon and caption, HUD rings
and spokes around a glowing hub, gradient arcs that spin idle and park on
the hovered slot, and an enter/exit animation; all of it collapses to
static states under reduce-motion. The window grows from 360 to 560 px to
fit the captions.

On Windows, strip the square fill behind the HWND after placement: DWM
border, caption, backdrop and corner rounding off, the class drop shadow
and background brush cleared, GPUI's accent policy disabled, and the
window clipped to an ellipse.

A dismissal from the agent no longer cuts a ring that is already playing
its exit; the ring removes itself when that ends.
A pill truncates a long label and user-authored labels can differ only at
their end, so hovering a slot shows its whole caption centred under the
hub, as the stock ring did; the pill itself stays compact.
A 560 px window did not fit a display whose logical height is below that
(1080p at 200%, 720p at 150%), and the Windows placement only clamps the
origin, so the bottom pill landed off screen. Shrink the window to 480 px
and the slot radius to 160 px; the pills, hub and HUD keep their sizes.
Under the hub the caption sat on the glow's edge and read as detached
from the ring. The cancel button now widens into a capsule centred on the
hub and shows the caption there; the cross returns when nothing is hovered.
The capsule read as a bar laid across the ring. The hub now eases from
the 48 px cancel button to a 136 px circle while a slot is hovered, the
caption fading in as it opens and the cross fading back as it closes;
reduce-motion snaps between the two states.
A 480 px ring on a display whose logical short side is smaller — 1280×720
at 200% is 360 px tall — overhung the bottom and put the bottom slot off
screen, where the stock 360 px ring still fit. `ring::panel_edge` now owns
that decision: the window takes the display's shorter side when that is
below the design size (on every placement path, physical on Windows), and
the skin scales its slot radius, pills, hub and ambient field by the same
ratio. Displays at least 480 px tall and wide keep the designed geometry
to the pixel.
…the hub

The cards read as solid plastic: the fill was opaque and a hovered card
only grew a drop shadow. They are smoked glass now, letting a little of
the ambient behind them through, with the lit top edge and shaded bottom
edge of a pane inside, and a sheen that falls from where the pointer is.

Hovering popped: HOVER_TAU of 0.07 s had the halo at full size and alpha
within a couple of frames. It eases in over 0.11 s, the halo fades in
linearly and starts growing only past a quarter of that, so the bubble
settles under the card instead of appearing on it.

The hub stayed a cross whatever was hovered. It opens around the hovered
action now: the cross fades out as that action's larger mint glyph and
its name fade in, on a hub clock of its own so leaving a card closes it
as softly as reaching one opened it.

The card's blended rest/hover look moves into CardLook and card_look(),
and the pressed dot into pressed_dot(), which keeps card_node() short
enough to read. The editor's empty slot outline becomes a theme-neutral
EMPTY_SLOT_OUTLINE in ring_style, so the preview no longer borrows an In
Motion colour for a slot no theme draws.
…en themes

A fourth theme would be the second copy of three things Obsidian keeps to
itself: the `#RRGGBBAA` reader, the stylesheet-ordered shadow builders in
ring_style, and the pair-by-pair shadow blend a lifting slot needs. They
move to the shared seams, motion.rs for the overlay and the top of
ring_style for the still look, before the next theme reaches for them.
A fourth theme, from the Porcelain Kinetic prototype: ceramic discs with
their captions under them, on a light glazed platter around a hub that
names the hovered action. A terracotta needle inside the platter's inset
ring turns the short way to point at the hovered disc, running a little
past it and settling, the disc and its caption lift under the pointer as
the caption warms, and a click presses the disc in and draws a short
stroke under its caption. 420 px, shrinking to a shorter display like
In Motion and Obsidian.

`ActionRingTheme::Porcelain` is appended to the enum and the wire, with
`theme = "porcelain"` in TOML and a `Porcelain` label in every catalog.
Its look at rest is `ring_style::porcelain`, read by the overlay and the
editor's preview alike; its clocks are `ring/porcelain.rs`. Tests pin the
node radius, that neighbouring nodes never overlap down to 240 px, the
needle's short turn and capped overshoot, its fade with nothing hovered,
and that the press and stroke play once.
The editor's preview draws Porcelain as the ring does at rest: the
platter, the ring inside it and the hub, with each slot a clear node
holding a ceramic disc over its caption. The selected disc shows the
ring's hovered look, its 2 px lift aside. The needle is hover state and
stays out of the still. The caption builder moves out of slot_button,
which had grown past the line limit with a fourth shape.
One opaque glazed platter holds the whole ring in a 400 px window, so
nothing casts a shadow outside itself. A disc shades in under the
pointer instead of lifting, and nothing moves until a click presses it
in; the hub presses in the same way and closes the ring. The ring opens
by gathering its nodes out from the centre on a stage shared through
`ring::motion`, and closes by gathering them back, carrying on from
wherever the opening got.
The dial grows in and the cards gather out from the centre as
Porcelain's do, and back on closing. The hovered card's halo grows on a
spring that runs a touch past full size and fades out quicker than it
fades in, so moving between cards never shows two halos; its sheen
clears to nothing past the middle, so it stays clear over a light
background.
A tight contact shadow and a soft one pulled in from the sides under
each card, and a faint edge with a pulled-in shade under the disc, in
place of the wide dark blurs that smudged a light desktop.
Cards at 58% at rest and 64% pressed, from 78% and 84%; the hub at 80%.
Obsidian's cards, orbit lines, ticks, sector and signal hub on one opaque
graphite chassis in a 400 px window, from the prototype's v7 revision. A
card presses in under the pointer and rounds into a circle with its glyph
and caption inside; a click presses it further and sends the wave out and
the flash through the hub; the hub presses in under the pointer and closes
the ring. It opens and closes on the shared stage.

So the new theme copies nothing, Obsidian's dial painters, its aim and
click clocks and its hub are shared through `ring::obsidian`, and the
click's press moves from Porcelain into `ring::motion`. The style module
takes what it shares with Obsidian from there and owns only the chassis,
the cell's shapes and shadows and the hub's press. The editor's preview
shows the chassis, dial and hub with the selected card rounded into its
circle.
v0.8.19 released with `PROTOCOL_VERSION` 42 while this branch was still
extending v42 with the ring's theme, so a released agent and overlay would
have passed the version check against these builds and disagreed on the
wire. The theme field and its variants now open v43, and v42 reads as it
shipped.
@Levgenij Levgenij changed the title feat(overlay,gui): add an In Motion Actions Ring theme beside the classic one feat(overlay,gui): add four Actions Ring themes beside the classic one Oct 30, 2026
`settle_latest_invocation` decides which invocation opens once the read is
in, which is ring-session sequencing, so it moves next to the invocation
loop in `session`. The macOS, Windows and Linux reads leave their
interleaved `cfg` arms for `platform/motion/{macos,windows,linux}.rs`
behind one facade, and the read answers `Option<MotionSetting>` with
`Full` and `Reduced` named, instead of a bool whose polarity each arm had
to flip. The `gsettings` reader's tests go with it to the Linux file.
…ds over

`render` advances the clocks in the one arm that holds the look and passes
the panel a copy of what it draws this frame, so no panel matches the look
a second time and falls back to `unreachable!`. The Obsidian panel takes
the pointer from the frame too, instead of the window and its origin.
The pill's padding, the gap between its glyph and caption and the
caption's inset lived in the ring's skin and again in the editor's
preview. They join `ring_style::in_motion` beside the pill's size, so
both draw from one.
@Levgenij
Levgenij force-pushed the feat/overlay-ring-skin branch from 7e722bd to 0de7382 Compare October 30, 2026 09:48
A card, cell or disc truncates a long caption, and user-authored labels
can differ only at their end, so hovering must still show all of it. The
Obsidian, Obsidian Signal and Porcelain hubs now do what In Motion's
does: open wider around the hovered action and carry its caption
wrapped, instead of cutting it to one line. The open hub stays inside
Obsidian's inner orbit and clear of Porcelain's needle, by assertion.
The preview derived every caption from the slot's action, so a slot the
user renamed showed its original name while the ring showed the saved
one. One `entry_caption` now takes the custom label first and the
localized action name only without one, the choice the agent makes for
the ring.

@AprilNEA AprilNEA left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Re-reviewed 0de7382. The three items from my last review are done. v43 is right, because v0.8.19 shipped v42. CI is green.

  • Scope: this PR now adds four themes (+6.8k lines). Which themes ship is a maintainer decision, and each theme is one more renderer to keep working on three platforms. I recommend that this PR keep the theme mechanism with Classic and In Motion, and that Obsidian, Obsidian Signal and Porcelain move to a follow-up PR on top of it, with their screenshots. Please do not add more themes here until the maintainer decides.
  • crates/openlogi-overlay/src/ring/obsidian.rs:908 and ring/porcelain.rs:684: the hub caption has .truncate(), so the hovered caption is cut off. The PR body says the hub shows the whole caption. Wrap it instead (Greptile thread on obsidian.rs:908).
  • crates/openlogi-desktop/src/features/action_ring.rs:485 and :853: the preview uses localized_action_label(entry.action()), but the ring shows entry.custom_label() first (crates/openlogi-agent-core/src/action_ring.rs:149). A renamed slot therefore reads differently in the preview. Use the custom label when it is set (Greptile thread on action_ring.rs:862).

Bring in 311 upstream commits (213cd9b..0cae281), including upstream's
reworked Actions Ring: direction aiming, per-device ring size,
release-to-select (protocol v45), floating slots with tailed labels,
right-click cancel, and the gpui_kit migration.

Classic is now upstream's current ring verbatim: the fork's copy of the
previous upstream look (ring/classic.rs and ring_style::classic) is gone.
The theme plumbing moves out of upstream files into fork-only modules
(overlay ring/look.rs, desktop action_ring/themed_preview.rs), leaving
short hooks marked `fork:` in ring.rs and the editor.

- themes report Hover { slot: None } on leaving a slot, so a held
  trigger released between slots chooses nothing
- RingPlacement takes a WindowEdge: Classic is Geometry::of(size) and
  never shrinks, themes keep their design edge and fit short displays
- upstream's Windows placement tests restored verbatim, fork tests
  appended
- ring_style uses openlogi_ui::color::neutral and follows color's
  gpui feature gate
- ActionRingInvocation::theme stays the last field; protocol v47
@Levgenij
Levgenij force-pushed the feat/overlay-ring-skin branch from 22b8ac7 to 5743a74 Compare December 2, 2026 15:46
A card click recorded its press before close() checked whether the exit was already playing, so a second click during the exit, or a click after a cancel, showed a choice whose command was never sent. Every theme now routes card clicks through RingView::choose, which refuses a choice once the ring is closing.
The theme layer's docs pointed at a .ai/ directory that is not in this repository and called the classic ring the upstream one. Name it the classic ring instead.
Comments the theme layer added still called the current ring the upstream one and marked its hooks with fork:. Name it the classic ring and drop the markers.
A themed ring kept the clicked card in its own field beside the exit
clock, and the click path had to record one and then start the other.
Each animated motion now holds a single `exit: Option<Exit>` with the
chosen slot inside it, and `Exit::begin` is the one transition: it
records the choice and starts the exit together, and refuses once an
exit plays, so a later click cannot change the pressed card.
Comment on lines +363 to +364
let opened =
settle_latest_invocation(cx, 1, &mut receiver, preference, async move { read }).await;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Tests can wait forever

open_with_read awaits settle_latest_invocation without a timeout while _sender keeps the channel open. If the background read stops completing, the test can wait forever instead of failing.

The repository requires every async test wait to race a timeout and panic with a useful message. This blocks merging until the waits here and elsewhere in settle_tests are bounded. Include a pending-read case that checks the timeout fails promptly. I verified the waits by reading the test module; I did not run them.

Rule Used: Severity: medium. Every bug fix ships a regression test that fails without the fix, and the PR states the counter-proof (the reverted line or the killed mutant). A test that passes with the fix reverted is not a regression test: ask for inputs where ... (source)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This can't hang. #[gpui::test] runs on gpui's deterministic test scheduler, which panics with Parking forbidden as soon as nothing is runnable while the awaited future is still pending (gpui-pre-scheduler test_scheduler.rs), and hard-fails after 15 s when parking is allowed. I checked it with a throwaway test whose read is std::future::pending(): it fails in 0.00 s with that panic. open_with_read also passes an already-ready read. Wrapping each wait in a timeout would only add a second, slower copy of what the scheduler already does, so I'm leaving these tests as they are.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You're right; I retract the finding. OpenLogi pins GPUI 0.3.10, and its #[gpui::test] scheduler does not leave this wait unbounded: when the test future is pending with no runnable work or timer to advance, forbidden parking panics with Parking forbidden; if parking is enabled, the scheduler has a 15-second hard timeout. The pinned scheduler source confirms both paths: test_scheduler.rs. An added timeout would duplicate that failure mechanism, so these waits do not need to change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: gui Graphical user interface needs: decision Needs a maintainer/product decision platform: all Cross-platform issue type: feature New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants