blob: 5e37423aa44bef2b570e9a32dc057e4f457c725b (
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
|
mod entries;
mod footer;
mod header;
mod help;
mod main;
mod mark;
pub use entries::*;
pub use footer::*;
pub use header::*;
pub use help::*;
pub use main::*;
pub use mark::*;
use tui::style::Color;
pub const COLOR_MARKED: Color = Color::Yellow;
pub const COLOR_MARKED_DARK: Color = Color::Rgb(176, 126, 0);
fn entry_color(fg: Color, is_file: bool, is_marked: bool) -> Color {
match (is_file, is_marked) {
(true, false) => Color::DarkGray,
(true, true) => COLOR_MARKED_DARK,
(false, true) => COLOR_MARKED,
_ => fg,
}
}
|