forked from GyulyVGC/sniffnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruvbox.rs
48 lines (43 loc) · 1.46 KB
/
gruvbox.rs
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
42
43
44
45
46
47
48
#![allow(clippy::unreadable_literal)]
//! Gruvbox
//! <https://github.com/morhetz/gruvbox>
use iced::color;
use super::{CustomPalette, Palette, PaletteExtension};
/// Gruvbox (night style)
pub(super) fn gruvbox_dark() -> CustomPalette {
CustomPalette {
palette: Palette {
primary: color!(0x282828), // bg
secondary: color!(0xfe8019), // orange
outgoing: color!(0x8ec07c), // aqua
buttons: color!(0x7c6f64), // bg4
text_headers: color!(0x1d2021), // bg0_h
text_body: color!(0xebdbb2), // fg
},
extension: PaletteExtension {
starred: color!(0xd79921, 0.8),
chart_badge_alpha: 0.15,
round_borders_alpha: 0.12,
round_containers_alpha: 0.05,
},
}
}
/// Gruvbox (day style)
pub(super) fn gruvbox_light() -> CustomPalette {
CustomPalette {
palette: Palette {
primary: color!(0xfbf1c7), // bg
secondary: color!(0xd65d0e), // orange
outgoing: color!(0x689d6a), // aqua
buttons: color!(0xd5c4a1), // bg2
text_headers: color!(0xf9f5d7), // bg0_h
text_body: color!(0x282828), // fg
},
extension: PaletteExtension {
starred: color!(0xd79921), // yellow
chart_badge_alpha: 0.75,
round_borders_alpha: 0.4,
round_containers_alpha: 0.15,
},
}
}