pub struct RadioTileStyleConfig {
pub content: WidgetId,
pub is_selected: Signal<bool>,
pub is_hovered: Signal<bool>,
pub is_pressed: Signal<bool>,
pub is_focused: Signal<bool>,
pub is_focus_visible: Signal<bool>,
pub is_disabled: Signal<bool>,
pub is_window_active: Signal<bool>,
pub variant: RadioTileVariant,
pub is_compact: bool,
}Expand description
Everything a RadioTileStyle needs to render one tile’s chrome.
All state is delivered as reactive Signals so the chrome repaints on
interaction without a rebuild. The window-active / focus split matches
StandardItemStyleConfig: a
selected tile shows the vivid selection surface only while its group
holds keyboard focus and the window is active, and the keyboard focus
ring appears only under is_focused && is_focus_visible.
Fields§
§content: WidgetIdPre-composed tile content — typically a VStack of
[HStack { icon?, title, Spacer, indicator? }, description|body?]
built by the host RadioTile. The style wraps it in the card chrome
but does not lay it out internally.
is_selected: Signal<bool>§is_hovered: Signal<bool>§is_pressed: Signal<bool>§is_focused: Signal<bool>Whether the tile’s group (or the tile itself, when standalone) holds
keyboard focus. Combined with is_window_active to pick the vivid vs
muted selection surface.
is_focus_visible: Signal<bool>Input-modality “focus-visible”: true after keyboard input. The focus
ring renders only when this and is_focused are both true, so a mouse
click selects without a ring while keyboard navigation reveals one.
is_disabled: Signal<bool>§is_window_active: Signal<bool>Whether the host window is active (focused AND not occluded).
Populated from BuildContext::window_active_signal.
variant: RadioTileVariant§is_compact: boolThe tile is in the compact single-line arrangement (a
TileLayout::Vertical row): the style should center its content in the
fixed row height rather than pad-and-top-anchor it, so a short fixed
height never over-constrains the content.
Trait Implementations§
Source§impl Clone for RadioTileStyleConfig
impl Clone for RadioTileStyleConfig
Source§fn clone(&self) -> RadioTileStyleConfig
fn clone(&self) -> RadioTileStyleConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more