Skip to main content

euv_ui/component/item/view/
enum.rs

1use super::*;
2
3/// The surface of an item.
4///
5/// The reference publishes three: a transparent row, a bordered row and
6/// a row on the muted surface.
7#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
8pub enum EuvItemVariant {
9    /// A transparent row that only shows its border on focus.
10    #[default]
11    Default,
12    /// A row with a visible border.
13    Outline,
14    /// A row on the muted surface.
15    Muted,
16}
17
18/// The density of an item.
19///
20/// The reference publishes three: the roomy, compact and extra-compact rows.
21#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
22pub enum EuvItemSize {
23    /// The roomy row.
24    #[default]
25    Default,
26    /// The compact row.
27    Sm,
28    /// The extra-compact row.
29    Xs,
30}
31
32/// The kind of media shown beside an item.
33///
34/// The reference publishes three: nothing at all, an icon and a picture.
35#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
36pub enum EuvItemMediaVariant {
37    /// No frame around the media.
38    #[default]
39    Default,
40    /// The media is an icon on a muted tile.
41    Icon,
42    /// The media is a picture in a clipped frame.
43    Image,
44}