blob: f2e3251b50d6b4539a16c40fddbb3541cda75def (
plain)
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
34
35
36
37
38
39
40
41
|
use iced::widget::container::Style;
use iced::{Background, Border};
use iced_material::Theme;
pub fn title_bar(theme: &Theme) -> Style {
let surface = theme.colors().surface;
Style {
text_color: Some(surface.text),
background: Some(Background::Color(surface.container.high)),
..Default::default()
}
}
pub fn pane_active(theme: &Theme) -> Style {
let surface = theme.colors().surface;
Style {
background: Some(Background::Color(surface.container.low)),
border: Border {
width: 1.0,
color: surface.container.high,
..Border::default()
},
..Default::default()
}
}
pub fn pane_focused(theme: &Theme) -> Style {
let surface = theme.colors().surface;
Style {
background: Some(Background::Color(surface.container.low)),
border: Border {
width: 2.0,
color: surface.container.high,
..Border::default()
},
..Default::default()
}
}
|