1
2pub struct Theme {
3
4 pub background : [u8;4],
5 pub line_numbers : [u8;4],
6 pub line_numbers_bg : [u8;4],
7
8 pub text : [u8;4],
9 pub cursor : [u8;4],
10
11 pub identifier : [u8;4],
12 pub number : [u8;4],
13 pub keywords : [u8;4],
14 pub brackets : [u8;4],
15 pub comments : [u8;4],
16 pub string : [u8;4],
17
18 pub error : [u8;4],
19}
20
21impl Theme {
22
23 pub fn new() -> Self {
24 Self {
25 background : [34, 34, 36, 255],
26 line_numbers : [160, 160, 160, 255],
27 line_numbers_bg : [30, 30, 32, 255],
28
29 text : [255, 255, 255, 255],
30 cursor : [170, 170, 170, 255],
31
32 identifier : [120, 214, 255, 255],
33 number : [159, 197, 146, 255],
34 keywords : [45, 133, 200, 255],
35 brackets : [226, 73, 146, 212],
36 comments : [69, 128, 56, 212],
37 string : [197, 117, 92, 212],
38
39 error : [237, 55, 54, 255],
40 }
41 }
42}