Skip to main content

Module status_bar

Module status_bar 

Source
Expand description

StatusBar — a horizontal chrome bar at the bottom of a window for status information.

The bar publishes Role::Status so assistive technology can discover it as a status landmark. It is not a live region by default — use announce_changes(true) only for bars that surface transient messages worth reading aloud (e.g. “Saved”), not for bars showing continuous data like cursor position or zoom level that would flood the screen reader. Visual chrome (background, border, corner radius) is delegated to an inner Panel.

let _bar = StatusBar::new()
    .child(TextWidget::new(lit!("Ln 1, Col 1")))
    .announce_changes(false);

Structs§

StatusBar
A status bar for displaying information at the bottom of a window.

Constants§

STATUS_BAR_HEIGHT
StatusBar design tokens.
STATUS_BAR_ITEM_GAP
STATUS_BAR_PADDING_HORIZONTAL