mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Run cargo fmt
This commit is contained in:
parent
f133ec219b
commit
e222b147cc
6 changed files with 114 additions and 63 deletions
|
@ -27,9 +27,7 @@ impl TColor {
|
|||
}
|
||||
|
||||
pub fn new(fg: Color, bg: Color, modifiers: Vec<Modifier>) -> Self {
|
||||
Self {
|
||||
fg, bg, modifiers,
|
||||
}
|
||||
Self { fg, bg, modifiers }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,7 +59,6 @@ impl TaskWarriorBool for str {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Config {
|
||||
pub enabled: bool,
|
||||
|
@ -98,10 +95,16 @@ impl Config {
|
|||
uda_selection_dim: Self::get_uda_selection_dim(),
|
||||
uda_selection_blink: Self::get_uda_selection_blink(),
|
||||
uda_calendar_months_per_row: Self::get_uda_months_per_row(),
|
||||
uda_style_calendar_title: Self::get_uda_style("calendar.title")
|
||||
.unwrap_or(TColor::new(Color::Reset, Color::Reset, vec![])),
|
||||
uda_style_context_active: Self::get_uda_style("context.active")
|
||||
.unwrap_or(TColor::new(Color::Reset, Color::Reset, vec![])),
|
||||
uda_style_calendar_title: Self::get_uda_style("calendar.title").unwrap_or(TColor::new(
|
||||
Color::Reset,
|
||||
Color::Reset,
|
||||
vec![],
|
||||
)),
|
||||
uda_style_context_active: Self::get_uda_style("context.active").unwrap_or(TColor::new(
|
||||
Color::Reset,
|
||||
Color::Reset,
|
||||
vec![],
|
||||
)),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue