Skip to content
Back

Display comfortPro

Oxyn original: Increase contrast, Reduce motion, Reduce transparency and Bold text beside a sample that takes each at once.

oxyn add display-comfort

Comfort

All off
Increase contrastDarker text and firmer edges
Reduce motionStops loops and slides
Reduce transparencyGlass turns solid
Bold textHeavier type everywhere
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

  • 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.

Terminal
oxyn add display-comfort

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

Default

Everything off: glass over colour, a moving bar and spinner.

Comfort

All off
Increase contrastDarker text and firmer edges
Reduce motionStops loops and slides
Reduce transparencyGlass turns solid
Bold textHeavier type everywhere
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

Calm

Reduce motion and transparency: the loops stop and the glass turns solid.

Comfort

2 on
Increase contrastDarker text and firmer edges
Reduce motionStops loops and slides
Reduce transparencyGlass turns solid
Bold textHeavier type everywhere
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

All on

All four: firm edges, still, solid and bold.

Comfort

All on
Increase contrastDarker text and firmer edges
Reduce motionStops loops and slides
Reduce transparencyGlass turns solid
Bold textHeavier type everywhere
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

DisplayComfort

PropTypeDefaultDescription
default_onVec<bool>vec![false, false, false, false]Starting switches, in `comfort_opts()` order.
on_changeEventHandler<(String, bool)>—A switch changed: (key, on).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabEach switch
EnterorSpaceFlips 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 DisplayComfort from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: DisplayComfortEl in oxyn_gpui.
  • 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