summaryrefslogtreecommitdiffstats
path: root/core/src/background.rs
blob: e1a37ddce15e1c9083dfbcd535b2e3e216169f71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Color;

/// The background of some element.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Background {
    /// A solid color
    Color(Color),
    // TODO: Add gradient and image variants
}

impl From<Color> for Background {
    fn from(color: Color) -> Self {
        Background::Color(color)
    }
}