Skip to main content

border_dim

Function border_dim 

Source
pub fn border_dim() -> Style
Expand description

Structural border style for overlay frames and dividers. Reads the border colour slot, which carries the DIM modifier on most themes so overlay frames recede behind their content. Use for borders, dividers and any other “dim chrome” that should not steal attention.

Distinct from accent() and accent_bold(): those paint with the brand accent colour (purple by default), while this helper paints the dim border tone. Earlier releases conflated the two under the accent name and rendered focus cursors invisibly on the default theme; the rename to border_dim() plus a new accent-slot-backed accent() fixes that.