Skip to main content

max / makeover

814 B · 48 lines History Blame Raw
1 //! Theme sources the tests of several modules share.
2
3 use crate::{ThemeColors, bundled_themes_dir, load_theme};
4
5 pub(crate) fn bundled(id: &str) -> ThemeColors {
6 let dir = bundled_themes_dir().expect("makeover ships its themes");
7 load_theme(&[(dir, false)], id).expect("the akari pair ships")
8 }
9
10 pub(crate) fn nord_toml() -> &'static str {
11 r##"
12 [meta]
13 name = "Nord"
14 variant = "dark"
15
16 [surface]
17 page = "#2e3440"
18 raised = "#3b4252"
19 sunken = "#434c5e"
20 overlay = "#3b4252"
21
22 [content]
23 primary = "#d8dee9"
24 secondary = "#e5e9f0"
25 muted = "#616e88"
26
27 [action]
28 primary = "#81a1c1"
29
30 [status]
31 danger = "#bf616a"
32 success = "#a3be8c"
33 warning = "#ebcb8b"
34 info = "#88c0d0"
35
36 [line]
37 border = "#4c566a"
38
39 [category]
40 one = "#bf616a"
41 two = "#a3be8c"
42 three = "#81a1c1"
43 four = "#ebcb8b"
44 five = "#b48ead"
45 six = "#88c0d0"
46 "##
47 }
48