Skip to main content

euv_ui/component/panel/view/
enum.rs

1use super::*;
2
3/// The border treatment of the `euv_panel` component.
4///
5/// The monochrome design system expresses separation with borders rather than
6/// shadows or background fills, so the variant only chooses the border style.
7#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
8pub enum EuvPanelVariant {
9    /// No border, for panels already separated by surrounding whitespace.
10    #[default]
11    Plain,
12    /// A solid 1px border, for a strongly grouped section.
13    Bordered,
14    /// A dashed 1px border, for a loosely grouped section.
15    Dashed,
16}