Merge pull request #56 from nxtonic/fix-default-colours

This commit is contained in:
Dheepak Krishnamurthy 2020-11-16 13:54:00 -07:00 committed by GitHub
commit c3eba1addf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -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,
} }
} }
} }

View file

@ -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,
} }
} }