boot-tree: palette options, finished-run timeline, readable unit names, repaint on reconnect, handover frame
This commit is contained in:
1 parent
1482d4437a
commit
101d7bae89
16 files changed
+854
-292
No files matched your search
@@ -0,0 +1,34 @@
|
||||
use ratatui::style::Color;
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Eq)]
|
||||
#[serde(default, deny_unknown_fields)]
|
||||
pub struct Palette {
|
||||
pub text: Color,
|
||||
pub muted: Color,
|
||||
pub waiting: Color,
|
||||
pub running: Color,
|
||||
pub done: Color,
|
||||
pub failed: Color,
|
||||
pub target: Color,
|
||||
}
|
||||
|
||||
impl Default for Palette {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
text: Color::White,
|
||||
muted: Color::DarkGray,
|
||||
waiting: Color::Gray,
|
||||
running: Color::Yellow,
|
||||
done: Color::Green,
|
||||
failed: Color::LightRed,
|
||||
target: Color::Cyan,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Default, Deserialize, PartialEq, Eq)]
|
||||
#[serde(default, deny_unknown_fields)]
|
||||
pub struct Config {
|
||||
pub palette: Palette,
|
||||
}
|
||||
Reference in new issue
Block a user