Skip to content
Back

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-center
Alert volume64%
Text size100%
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

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.

Terminal
oxyn add control-center

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Tiles

Tiles and meters.

Alert volume64%
Text size100%
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Focus

The focus detail with the session dial.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Channels

Notification channels.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Agents

Agent quick settings.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

ControlCenter

PropTypeDefaultDescription
modesrequiredVec<FocusMode>—Focus modes.
channelsrequiredVec<Channel>—Channels.
peopleVec<String>Default::default()People who can still reach you.
default_volumef3260.0Initial volume 0–100.
default_text_sizef32100.0Initial text size 85–130.
now_minu32890Now, minutes after midnight.
agent_tilesbooltrueAgent tiles.
open_detailOption<String>Default::default()Open this detail on mount (`focus`, `notifications`, `agent`).
labelString"Quick settings"Panel name.
on_state_changeEventHandler<(String, String)>—Any change (focus label, notifications label).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterorSpaceToggle a tile or open its detail from the chevron
ArrowsMeters ±1 step; the dial ±5 minutes
Page UporDownMeters ±4 steps; the dial ±15 minutes
HomeorEndLimits
EscClose 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
TransitionDurationEasingReduced motion
Detail open280 msease.outfade
Knob snap240 msspring (1.4)instant
Meter swell160 msease.outnone
Tile line200 msease.outswap

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 ControlCenter from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: ControlCenterEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI