Control centerPro
Workspace quick settings: tiles that open into detail, a session dial that counts past twelve and snaps to 5 minutes, and meters that follow the pointer with rubber-banded ends.
oxyn add control-centerThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Quick workspace settings in one panel: start a focus session, silence channels, present, set alert volume and text size.
- Oxyn adds the agent's effort, permissions and voice.
When not to use
- On or off for things that apply right away: use Switch instead.
- One value or a range, with marks, named detents that pull the thumb, a live cost tag, a vertical form and a value bubble: use Slider instead.
- Spin a 24-hour dial to pick a time and see which team cities are at work: use Time dial instead.
Installation
Control center is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add control-centerUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Tiles
Tiles and meters.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Focus
The focus detail with the session dial.
Focus
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Channels
Notification channels.
Notifications
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Agents
Agent quick settings.
Agents
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ControlCenter
| Prop | Type | Default | Description |
|---|---|---|---|
modesrequired | Vec<FocusMode> | — | Focus modes. |
channelsrequired | Vec<Channel> | — | Channels. |
people | Vec<String> | Default::default() | People who can still reach you. |
default_volume | f32 | 60.0 | Initial volume 0–100. |
default_text_size | f32 | 100.0 | Initial text size 85–130. |
now_min | u32 | 890 | Now, minutes after midnight. |
agent_tiles | bool | true | Agent tiles. |
open_detail | Option<String> | Default::default() | Open this detail on mount (`focus`, `notifications`, `agent`). |
label | String | "Quick settings" | Panel name. |
on_state_change | EventHandler<(String, String)> | — | Any change (focus label, notifications label). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| EnterorSpace | Toggle a tile or open its detail from the chevron |
| Arrows | Meters ±1 step; the dial ±5 minutes |
| Page UporDown | Meters ±4 steps; the dial ±15 minutes |
| HomeorEnd | Limits |
| Esc | Close the detail |
Accessibility
- Tiles are toggle buttons with aria-pressed; chevrons open a modal detail and the grid behind is inert.
- Meters and the dial are sliders with formatted aria-valuetext; channels are switches.
From the spec
Tiles are toggle buttons; chevrons open a modal detail named by its title; the dial and meters are sliders with formatted valuetext ("50 minutes, until 3:40 PM", "64%"); channels are switches.
Motion & interaction
Tiles flip to the inverted surface when on; the line under the name rises when it changes. The dial's knob springs to snapped minutes on release. Meters swell 6 % while held.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Detail open | 280 ms | ease.out | fade |
| Knob snap | 240 ms | spring (1.4) | instant |
| Meter swell | 160 ms | ease.out | none |
| Tile line | 200 ms | ease.out | swap |
Responsive behaviour
- min(100 %, 22.5 rem) wide with a fixed height; tighter padding and a smaller dial under 360 px.
Edge cases (spec)
The dial keeps counting across twelve so 50 → 65 crosses the top cleanly. Values past the ends resist and settle back. The panel is a fixed height; details scroll.
Notes for AI
- Import
ControlCenterfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
ControlCenterElinoxyn_gpui. - Props to set first:
modes,channels. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.