polyhorn_ui/components/
status_bar.rs

1/// Represents the style of the OS status bar.
2#[derive(Copy, Clone, Debug, Eq, PartialEq)]
3pub enum StatusBarStyle {
4    /// Uses black text and symbols.
5    DarkContent,
6
7    /// Uses white text and symbols.
8    LightContent,
9}
10
11impl Default for StatusBarStyle {
12    fn default() -> Self {
13        StatusBarStyle::DarkContent
14    }
15}
16
17/// Controls the appearance of the system status bar on iOS and Android.
18#[derive(Default)]
19pub struct StatusBar {
20    /// Controls the style (i.e. color of text and symbols) of the status bar.
21    pub style: StatusBarStyle,
22}