-
Notifications
You must be signed in to change notification settings - Fork 2
/
themes.rs
38 lines (35 loc) · 1.26 KB
/
themes.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
use tui::style::Color;
pub struct Theme {
pub title_color: Color,
pub dark_square_color: Color,
pub light_square_color: Color,
pub highlighted_color: Color,
pub error_color: Color,
pub text_color: Color,
pub light_number_color: Color,
pub dark_number_color: Color,
pub victory_color: Color,
}
pub const TRANQUIL: Theme = Theme {
title_color: Color::Rgb(170, 143, 121), // Pastel Brown
dark_square_color: Color::Gray,
light_square_color: Color::White,
highlighted_color: Color::Rgb(184, 255, 184), // Mint
error_color: Color::Rgb(255, 165, 161), // Pastel Red
text_color: Color::White,
light_number_color: Color::Black,
dark_number_color: Color::Black,
victory_color: Color::Rgb(184, 255, 184), // Mint
};
// https://github.com/dracula/dracula-theme
pub const DRACULA: Theme = Theme {
title_color: Color::Rgb(181, 147, 249),
dark_square_color: Color::Rgb(68, 71, 90),
light_square_color: Color::Rgb(40, 42, 54),
highlighted_color: Color::Rgb(189, 147, 249),
error_color: Color::Rgb(255, 85, 85),
text_color: Color::Rgb(248, 248, 242),
light_number_color: Color::Rgb(248, 248, 242),
dark_number_color: Color::Rgb(248, 248, 242),
victory_color: Color::Rgb(80, 250, 123),
};