pub struct UiStore {
pub sidebar_open: bool,
pub sidebar_collapsed: bool,
pub notifications: Vec<Notification>,
pub modal: ModalState,
pub command_palette: CommandPaletteState,
pub focused_element: Option<String>,
pub dark_mode: bool,
pub loading_overlay: bool,
pub loading_message: Option<String>,
pub is_mobile: bool,
pub is_touch_device: bool,
}Expand description
UI store state
Fields§
Whether the sidebar is open (for mobile)
Whether the sidebar is collapsed (for desktop)
notifications: Vec<Notification>Active notifications
modal: ModalStateModal state
command_palette: CommandPaletteStateCommand palette state
focused_element: Option<String>Currently focused element ID
dark_mode: boolWhether dark mode is active (resolved from settings)
loading_overlay: boolLoading overlay visible
loading_message: Option<String>Loading message
is_mobile: boolMobile breakpoint active
is_touch_device: boolTouch device detected
Implementations§
Source§impl UiStore
impl UiStore
Sourcepub fn visible_notifications(&self) -> &[Notification]
pub fn visible_notifications(&self) -> &[Notification]
Get visible notifications (limited)
Sourcepub fn is_command_palette_open(&self) -> bool
pub fn is_command_palette_open(&self) -> bool
Check if command palette is open
Trait Implementations§
impl StructuralPartialEq for UiStore
Auto Trait Implementations§
impl Freeze for UiStore
impl RefUnwindSafe for UiStore
impl Send for UiStore
impl Sync for UiStore
impl Unpin for UiStore
impl UnwindSafe for UiStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.