Skip to content
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d581604
feat(overlay): redesign the Actions Ring with captioned pills and motion
Levgenij Oct 19, 2026
93bf8c5
fix(overlay): show the hovered slot's full caption under the hub
Levgenij Oct 22, 2026
04d37af
fix(overlay): fit the ring on displays shorter than 560 logical pixels
Levgenij Oct 22, 2026
3e910a8
fix(overlay): carry the hovered caption in the hub instead of under it
Levgenij Oct 22, 2026
15731fa
feat(overlay): open the hub into an animated circle around the caption
Levgenij Oct 22, 2026
aecb865
fix(overlay): fit the ring to displays shorter than its design size
Levgenij Oct 22, 2026
fb9fe99
feat(overlay,gui): let users pick the Actions Ring theme
Levgenij Oct 28, 2026
531cc37
refactor(overlay): drop the Windows square-fill workaround
Levgenij Oct 28, 2026
26d03d8
refactor(core,gui): name the classic Actions Ring theme for what it is
Levgenij Oct 28, 2026
f41cb43
refactor(overlay): make the ring's look a type and size the window by…
Levgenij Oct 28, 2026
911f807
feat(overlay): honour the OS reduce-motion preference for the ring
Levgenij Oct 28, 2026
ec08556
feat(gui): preview the Actions Ring in the theme the device uses
Levgenij Oct 28, 2026
8bb4f4a
feat(gui,ui): draw the ring preview from the ring's own style
Levgenij Oct 28, 2026
3ff4971
fix(overlay): scale the In Motion pill height with the panel
Levgenij Oct 28, 2026
65b7cc9
refactor(overlay): share the ring's motion helpers between themes
Levgenij Oct 28, 2026
ce50712
feat(overlay): add the Obsidian Actions Ring theme
Levgenij Oct 28, 2026
9796000
feat(gui): preview the Obsidian theme in the Actions Ring editor
Levgenij Oct 28, 2026
3156b19
fix(overlay): let the Obsidian halo's rim arrive on every visit
Levgenij Oct 28, 2026
9d8a172
feat(overlay): give the Obsidian cards glass, ease the halo in, open …
Levgenij Oct 28, 2026
2713002
refactor(overlay,ui): share the shadow blend and colour helpers betwe…
Levgenij Oct 28, 2026
2296cf8
feat(overlay): add the Porcelain Actions Ring theme
Levgenij Oct 28, 2026
ea2e6d4
feat(gui): preview the Porcelain theme in the Actions Ring editor
Levgenij Oct 28, 2026
fd34117
feat(overlay,ui): rework Porcelain after the updated prototype
Levgenij Oct 29, 2026
44f5f7d
feat(overlay): open Obsidian on the shared stage with a sprung halo
Levgenij Oct 29, 2026
1720785
style(ui): tighten Obsidian's shadows for light backgrounds
Levgenij Oct 29, 2026
911ed88
style(ui): let the desktop show through Obsidian's cards and hub
Levgenij Oct 29, 2026
658002d
feat(overlay,gui): add the Obsidian Signal Actions Ring theme
Levgenij Oct 30, 2026
d076c9e
fix(ipc): move the ring theme to protocol v43, v42 having shipped
Levgenij Oct 30, 2026
edc3d9e
refactor(overlay): keep only the OS read of reduce motion in platform
Levgenij Oct 30, 2026
d6517c8
refactor(overlay): draw each animated panel from a frame its look han…
Levgenij Oct 30, 2026
0de7382
refactor(gui,ui): share the In Motion pill layout with the preview
Levgenij Oct 30, 2026
1d37d7d
fix(overlay): open the hub around the whole caption in the newer themes
Levgenij Oct 30, 2026
c1955eb
fix(gui): caption the preview's slots by their custom labels
Levgenij Oct 30, 2026
5743a74
Merge origin/master into the theme branch
Levgenij Dec 2, 2026
218a8bf
docs(gui): describe the Actions Ring theme setting and how themed rin…
Levgenij Dec 2, 2026
b66e909
test(gui): hold the locale lock while the ring preview test draws
Levgenij Dec 2, 2026
197de5a
fix(overlay): keep a themed ring's choice once its exit starts
Levgenij Dec 2, 2026
94f0602
docs(overlay): describe the ring themes without fork-only terms
Levgenij Dec 2, 2026
8ee5cbe
docs: describe the Actions Ring themes without fork-only terms
Levgenij Dec 2, 2026
2664cc7
refactor(overlay): make the ring's choice part of its exit
Levgenij Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .agents/rules/objc-ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
paths:
- "crates/openlogi-desktop/src/platform/**"
- "crates/openlogi-overlay/src/platform.rs"
- "crates/openlogi-overlay/src/platform/motion/macos.rs"
- "crates/openlogi-permissions/**"
- "crates/openlogi-camera/**"
- "crates/openlogi-agent/src/activity_macos.rs"
Expand Down Expand Up @@ -51,6 +52,7 @@ files; **keep this table in sync when you add or move one**:
| `openlogi-inject/src/inject/macos/main_thread.rs` | the bounded hand-off of main-thread work from the action worker to the main queue (`dispatch2`) |
| `openlogi-inject/src/inject/macos/virtual_keyboard/device.rs` | the `IOHIDUserDevice` virtual keyboard that key synthesis types through: its creation (which needs the `com.apple.developer.hid.virtual.device` entitlement) and its timestamped input reports. The report state in `virtual_keyboard.rs` above it is safe code |
| `openlogi-overlay/src/platform.rs` | the Actions Ring helper's window policy: accessory activation, a non-activating panel that a click does not make key, the `NSEvent` global click-away monitor (`block2`), and `CGGetActiveDisplayList` / `CGDisplayBounds` |
| `openlogi-overlay/src/platform/motion/macos.rs` | the reduce-motion read before each ring opens: `NSWorkspace::accessibilityDisplayShouldReduceMotion` |
| `openlogi-permissions/src/macos.rs` | non-prompting permission reads + System-Settings deep links; `+[CBManager authorization]` via an `AnyClass` lookup |

Every rule below binds all of them, whichever crate they live in.
Expand Down
6 changes: 5 additions & 1 deletion crates/openlogi-agent-core/src/action_ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::time::Duration;

use openlogi_core::action_ring::DISPLAY_LIFETIME;
use openlogi_core::binding::{
Action, ActionRingIcon, ActionRingLayout, ActionRingSize, ActionRingSlot,
Action, ActionRingIcon, ActionRingLayout, ActionRingSize, ActionRingSlot, ActionRingTheme,
};
use openlogi_hid::DeviceRoute;
use openlogi_ipc::{
Expand Down Expand Up @@ -60,6 +60,8 @@ pub struct ActionRingSessionSpec {
pub language: Option<String>,
/// How large the overlay draws the ring.
pub size: ActionRingSize,
/// How the overlay draws the ring.
pub theme: ActionRingTheme,
}

/// A validated slot activation returned to the action dispatcher.
Expand Down Expand Up @@ -199,6 +201,7 @@ impl ActionRingManager {
slots,
language: spec.language,
size: spec.size,
theme: spec.theme,
};
let mut state = self.state();
state.active = Some(Session {
Expand Down Expand Up @@ -402,6 +405,7 @@ mod tests {
layout: ActionRingConfig::default().default,
language: None,
size: ActionRingSize::default(),
theme: ActionRingTheme::Classic,
}
}

Expand Down
1 change: 1 addition & 0 deletions crates/openlogi-agent-core/src/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,7 @@ impl Orchestrator {
layout,
language: self.config.app_settings.language.clone(),
size: ring.size,
theme: ring.theme,
})
}

Expand Down
2 changes: 1 addition & 1 deletion crates/openlogi-core/src/binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod tests;
pub use action::{Action, HeldKeys, WorkflowStep};
pub use action_ring::{
ActionRingConfig, ActionRingEntry, ActionRingIcon, ActionRingLayout, ActionRingSize,
ActionRingSlot, RingAction, RingActionError,
ActionRingSlot, ActionRingTheme, RingAction, RingActionError,
};
pub use application_target::{ApplicationTarget, ApplicationTargetError};
pub use button::{ButtonId, GridKey, GridSlot, KeypadPage, ParseButtonIdError};
Expand Down
62 changes: 62 additions & 0 deletions crates/openlogi-core/src/binding/action_ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,42 @@ impl ActionRingSize {
pub const ALL: [Self; 3] = [Self::Small, Self::Medium, Self::Large];
}

/// How the overlay draws a device's Actions Ring.
///
/// Serialized names are part of the TOML schema, and the enum crosses the IPC
/// boundary inside the ring invocation: both are append-only.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ActionRingTheme {
/// The dark disc of round icon slots, with the hovered slot's label under
/// the cancel button. Named for what it is, not for being the default: the
/// TOML name is append-only, and another theme may become the default.
#[default]
Classic,
/// Captioned pills over animated HUD arcs, with enter and exit motion.
InMotion,
/// Dark glass cards around a signal hub, with a pointer-lit halo on the
/// hovered one and a sector that turns to face it.
Obsidian,
/// Ceramic discs with their captions under them, on a light platter
/// around a hub, with a needle that turns to point at the hovered one.
Porcelain,
/// Obsidian's cards, orbits and hub on one opaque graphite chassis, with
/// the hovered card pressing in and turning into a circle.
ObsidianSignal,
}

impl ActionRingTheme {
/// Every theme, in picker order.
pub const ALL: [Self; 5] = [
Self::Classic,
Self::InMotion,
Self::Obsidian,
Self::ObsidianSignal,
Self::Porcelain,
];
}

/// Per-device Actions Ring settings and application-specific layouts.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
Expand All @@ -347,6 +383,9 @@ pub struct ActionRingConfig {
/// How large the ring is drawn.
#[serde(default)]
pub size: ActionRingSize,
/// How the overlay draws the ring.
#[serde(default)]
pub theme: ActionRingTheme,
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
/// Layout used when the foreground application has no override.
#[serde(default)]
pub default: ActionRingLayout,
Expand All @@ -361,6 +400,7 @@ impl Default for ActionRingConfig {
enabled: true,
haptics: true,
size: ActionRingSize::default(),
theme: ActionRingTheme::Classic,
default: ActionRingLayout::default(),
per_app: BTreeMap::new(),
}
Expand Down Expand Up @@ -683,4 +723,26 @@ Bottom = { action = { CustomShortcut = "Cmd+Shift+P" } }
assert_eq!(config.profile_layout(Some("app:sharex")), paste);
assert_eq!(config.profile_layout(None), config.default);
}

#[test]
fn a_ring_without_a_theme_is_classic() {
let config = toml::from_str::<ActionRingConfig>("haptics = false")
.expect("a ring without a theme must load");
assert_eq!(config.theme, ActionRingTheme::Classic);
let config = toml::from_str::<ActionRingConfig>(r#"theme = "classic""#)
.expect("the classic theme must load");
assert_eq!(config.theme, ActionRingTheme::Classic);
let config = toml::from_str::<ActionRingConfig>(r#"theme = "in_motion""#)
.expect("the in_motion theme must load");
assert_eq!(config.theme, ActionRingTheme::InMotion);
let config = toml::from_str::<ActionRingConfig>(r#"theme = "obsidian""#)
.expect("the obsidian theme must load");
assert_eq!(config.theme, ActionRingTheme::Obsidian);
let config = toml::from_str::<ActionRingConfig>(r#"theme = "porcelain""#)
.expect("the porcelain theme must load");
assert_eq!(config.theme, ActionRingTheme::Porcelain);
let config = toml::from_str::<ActionRingConfig>(r#"theme = "obsidian_signal""#)
.expect("the obsidian_signal theme must load");
assert_eq!(config.theme, ActionRingTheme::ObsidianSignal);
}
}
13 changes: 11 additions & 2 deletions crates/openlogi-core/src/config/per_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use super::{
ThumbwheelSensitivity,
};
use crate::binding::{
Action, ActionRingConfig, ActionRingIcon, ActionRingSize, ActionRingSlot, Binding, ButtonId,
GKeyProfile, GamingLayout, KeypadPage, RingAction, default_binding_on,
Action, ActionRingConfig, ActionRingIcon, ActionRingSize, ActionRingSlot, ActionRingTheme,
Binding, ButtonId, GKeyProfile, GamingLayout, KeypadPage, RingAction, default_binding_on,
};
use crate::hid::{Dpi, PointerSpeed, ReportRate};

Expand Down Expand Up @@ -79,6 +79,15 @@ impl Config {
.size = size;
}

/// Choose how the overlay draws `device_key`'s ring.
pub fn set_action_ring_theme(&mut self, device_key: &str, theme: ActionRingTheme) {
self.devices
.entry(device_key.to_string())
.or_default()
.action_ring
.theme = theme;
}

/// Replace or clear one slot in the default Actions Ring layout.
pub fn set_action_ring_slot(
&mut self,
Expand Down
24 changes: 22 additions & 2 deletions crates/openlogi-desktop/src/features/action_ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

mod action_icons;
mod editor;
// fork: the theme picker and the themed previews.
mod themed_preview;

use crate::ui::theme::FocusRingStyle as _;
use gpui::{
Expand Down Expand Up @@ -42,6 +44,8 @@ pub struct ActionRingPanel {
type_text_input: Option<Entity<InputState>>,
applescript_input: Option<Entity<InputState>>,
shell_command_input: Option<Entity<InputState>>,
/// fork: the Actions Ring theme picker.
theme_select: Option<Entity<themed_preview::ThemeSelect>>,
library_scroll: ScrollHandle,
#[expect(dead_code, reason = "held to keep the AppState subscription alive")]
state_obs: Subscription,
Expand All @@ -60,6 +64,7 @@ impl ActionRingPanel {
type_text_input: None,
applescript_input: None,
shell_command_input: None,
theme_select: None,
library_scroll: ScrollHandle::new(),
state_obs,
}
Expand Down Expand Up @@ -119,6 +124,7 @@ impl Render for ActionRingPanel {
cx,
);
let power_user = self.power_user_inputs(window, cx);
let theme_select = self.theme_select(ring.theme, window, cx);
let view = cx.entity();

v_flex()
Expand Down Expand Up @@ -157,8 +163,20 @@ impl Render for ActionRingPanel {
.flex_none()
.w(px(PREVIEW_SIZE))
.gap_4()
.child(ring_preview(&layout, self.selected_slot, &view, pal))
.child(ring_switches(&ring, haptics_supported, pal, cx)),
.child(themed_preview::ring_preview(
ring.theme,
&layout,
self.selected_slot,
&view,
pal,
))
.child(ring_switches(
&ring,
haptics_supported,
&theme_select,
pal,
cx,
)),
)
.child(action_library(
self.selected_slot,
Expand All @@ -178,6 +196,7 @@ impl Render for ActionRingPanel {
fn ring_switches(
ring: &ActionRingConfig,
haptics_supported: bool,
theme_select: &Entity<themed_preview::ThemeSelect>,
pal: Palette,
cx: &App,
) -> impl IntoElement {
Expand All @@ -203,6 +222,7 @@ fn ring_switches(
tr!("action_ring.ring_size_description"),
size_segment(ring.size, cx),
))
.child(themed_preview::theme_row(theme_select, pal))
.when(haptics_supported, |switches| {
switches.child(toggle_row(
"ring-haptics-row",
Expand Down
Loading
Loading