1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// Represents the style of the OS status bar.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum StatusBarStyle {
    /// Uses black text and symbols.
    DarkContent,

    /// Uses white text and symbols.
    LightContent,
}

impl Default for StatusBarStyle {
    fn default() -> Self {
        StatusBarStyle::DarkContent
    }
}

/// Controls the appearance of the system status bar on iOS and Android.
#[derive(Default)]
pub struct StatusBar {
    /// Controls the style (i.e. color of text and symbols) of the status bar.
    pub style: StatusBarStyle,
}