mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Merge pull request #56 from nxtonic/fix-default-colours
This commit is contained in:
commit
c3eba1addf
2 changed files with 7 additions and 7 deletions
|
@ -39,7 +39,7 @@ impl<'a> Default for Calendar<'a> {
|
||||||
year,
|
year,
|
||||||
month,
|
month,
|
||||||
date_style: vec![],
|
date_style: vec![],
|
||||||
title_background_color: Color::White,
|
title_background_color: Color::Reset,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@ impl Default for TColor {
|
||||||
impl TColor {
|
impl TColor {
|
||||||
pub fn default() -> Self {
|
pub fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
fg: Color::Black,
|
fg: Color::Reset,
|
||||||
bg: Color::White,
|
bg: Color::Reset,
|
||||||
modifiers: vec![],
|
modifiers: vec![],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,9 +99,9 @@ impl Config {
|
||||||
uda_selection_blink: Self::get_uda_selection_blink(),
|
uda_selection_blink: Self::get_uda_selection_blink(),
|
||||||
uda_calendar_months_per_row: Self::get_uda_months_per_row(),
|
uda_calendar_months_per_row: Self::get_uda_months_per_row(),
|
||||||
uda_style_calendar_title: Self::get_uda_style("calendar.title")
|
uda_style_calendar_title: Self::get_uda_style("calendar.title")
|
||||||
.unwrap_or(TColor::new(Color::Black, Color::Rgb(220, 220, 220), vec![])),
|
.unwrap_or(TColor::new(Color::Reset, Color::Reset, vec![])),
|
||||||
uda_style_context_active: Self::get_uda_style("context.active")
|
uda_style_context_active: Self::get_uda_style("context.active")
|
||||||
.unwrap_or(TColor::new(Color::Black, Color::Rgb(220, 220, 220), vec![])),
|
.unwrap_or(TColor::new(Color::Reset, Color::Reset, vec![])),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,8 +166,8 @@ impl Config {
|
||||||
}
|
}
|
||||||
let foreground = foreground.replace("inverse ", "");
|
let foreground = foreground.replace("inverse ", "");
|
||||||
TColor {
|
TColor {
|
||||||
fg: Self::get_color_foreground(foreground.as_str(), Color::Black),
|
fg: Self::get_color_foreground(foreground.as_str(), Color::Reset),
|
||||||
bg: Self::get_color_background(background.as_str(), Color::White),
|
bg: Self::get_color_background(background.as_str(), Color::Reset),
|
||||||
modifiers,
|
modifiers,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue