euv_ui/component/toggle/view/enum.rs
1use super::*;
2
3/// The visual variants of a toggle.
4///
5/// The default toggle is a borderless control that fills with the accent
6/// surface when it is pressed; the outline variant carries a one-pixel
7/// border so a row of toggles reads as a set of separate controls.
8#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
9pub enum EuvToggleVariant {
10 /// A borderless control that fills with the accent surface when pressed.
11 #[default]
12 Default,
13 /// A bordered control.
14 Outline,
15}
16
17/// The sizes of a toggle.
18///
19/// The reference publishes three: the default box, a smaller one and a
20/// larger one.
21#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
22pub enum EuvToggleSize {
23 /// The default control size.
24 #[default]
25 Default,
26 /// The small control size.
27 Small,
28 /// The large control size.
29 Large,
30}