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
26
27
28
29
30
31
32
33
use super::super::super::widget::image;
use vek::Rgba;

#[derive(Clone, Copy)]
pub struct Style {
    pub track: Option<Track>,
    pub scroller: Scroller,
}

impl Default for Style {
    fn default() -> Self {
        Self {
            track: None,
            scroller: Scroller::Color(Rgba::new(128, 128, 128, 255)),
        }
    }
}

#[derive(Clone, Copy)]
pub enum Track {
    Color(Rgba<u8>),
    Image(image::Handle, Rgba<u8>),
}

#[derive(Clone, Copy)]
pub enum Scroller {
    Color(Rgba<u8>),
    Image {
        ends: image::Handle,
        mid: image::Handle,
        color: Rgba<u8>,
    },
}