Display comfortPro
Oxyn original: Increase contrast, Reduce motion, Reduce transparency and Bold text beside a sample that takes each at once.
oxyn add display-comfortComfort
All offThe 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
- Gather the comfort settings that change how the whole app feels, and show what each one does before leaving the page.
When not to use
- Picture tiles we draw ourselves plus Your own, with Film, Static or Dither laid over the picture and a home screen preview: use Background picker instead.
- Eight mini-window swatches: use Theme grid instead.
- Oxyn original: use Theme split instead.
Installation
Display comfort 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 display-comfortUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Everything off: glass over colour, a moving bar and spinner.
Comfort
All offCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Calm
Reduce motion and transparency: the loops stop and the glass turns solid.
Comfort
2 onCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
All on
All four: firm edges, still, solid and bold.
Comfort
All onCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
DisplayComfort
| Prop | Type | Default | Description |
|---|---|---|---|
default_on | Vec<bool> | vec![false, false, false, false] | Starting switches, in `comfort_opts()` order. |
on_change | EventHandler<(String, bool)> | — | A switch changed: (key, on). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Each switch |
| EnterorSpace | Flips it |
Accessibility
- Switches use role=switch with aria-checked and are named by their label.
- The sample is an image labelled with how many switches are on.
Responsive behaviour
- 600 px card; the sample moves under the switches under 560 px.
Edge cases (spec)
The sample moves under the switches under 560 px.
Notes for AI
- Import
DisplayComfortfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
DisplayComfortElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.