logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/// Representing default identifiers of `TextStyle`s.
/// 
/// Can be extended with Custom by using concrete project values.
///
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TextStyleKind {
    /// Button text style
    Button,
    /// Body text style
    Body,
    /// Headline text style
    Headline,
    /// Subhead text style
    Subhead,
    /// Smallprint text style
    Smallprint,
    /// Oversized text style
    Oversized,

    /// Allows [TextStyleKind] to be extended (e.g. for using project specific text styles).
    Custom {
        /// Custom value
        value: u32,
    },
}