From 3dd8502895d17b4e1a8afb729feeef5ba6d0474e Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 4 Aug 2020 13:16:22 +0530 Subject: use terminal default for bg --- src/theme.rs | 20 ++++++++++---------- src/utils.rs | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/theme.rs b/src/theme.rs index 4194777..1d2cc36 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -1,18 +1,18 @@ use cursive::theme::Color::*; use cursive::theme::PaletteColor::*; -use cursive::theme::{BaseColor, BorderStyle, Palette, Theme}; +use cursive::theme::{BorderStyle, Palette, Theme}; pub fn pallete_gen() -> Palette { let mut p = Palette::default(); - p[Background] = Dark(BaseColor::Black); - p[Shadow] = Light(BaseColor::Black); - p[View] = Dark(BaseColor::Black); - p[Primary] = Dark(BaseColor::White); - p[Secondary] = Dark(BaseColor::Black); - p[Tertiary] = Dark(BaseColor::Green); - p[TitlePrimary] = Light(BaseColor::White); - p[Highlight] = Dark(BaseColor::Red); - p[HighlightInactive] = Dark(BaseColor::Black); + p[Background] = TerminalDefault; + p[Shadow] = TerminalDefault; + p[View] = TerminalDefault; + p[Primary] = TerminalDefault; + p[Secondary] = TerminalDefault; + p[Tertiary] = TerminalDefault; + p[TitlePrimary] = TerminalDefault; + p[Highlight] = TerminalDefault; + p[HighlightInactive] = TerminalDefault; return p; } diff --git a/src/utils.rs b/src/utils.rs index c579241..2453aa6 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -53,7 +53,7 @@ fn magenta() -> String { "magenta".into() } fn light_black() -> String { - "light_black".into() + "light black".into() } impl Default for Colors { -- cgit v1.2.3