diff options
author | Akshay <[email protected]> | 2020-08-04 08:46:22 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-08-04 08:46:22 +0100 |
commit | 3dd8502895d17b4e1a8afb729feeef5ba6d0474e (patch) | |
tree | 4dfc7364cdcae2de93d821520e7a2bc791754ab2 | |
parent | 403d114d8296fe37dbdb509449a2fee2badb8d37 (diff) |
use terminal default for bg
-rw-r--r-- | src/theme.rs | 20 | ||||
-rw-r--r-- | src/utils.rs | 2 |
2 files changed, 11 insertions, 11 deletions
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 @@ | |||
1 | use cursive::theme::Color::*; | 1 | use cursive::theme::Color::*; |
2 | use cursive::theme::PaletteColor::*; | 2 | use cursive::theme::PaletteColor::*; |
3 | use cursive::theme::{BaseColor, BorderStyle, Palette, Theme}; | 3 | use cursive::theme::{BorderStyle, Palette, Theme}; |
4 | 4 | ||
5 | pub fn pallete_gen() -> Palette { | 5 | pub fn pallete_gen() -> Palette { |
6 | let mut p = Palette::default(); | 6 | let mut p = Palette::default(); |
7 | p[Background] = Dark(BaseColor::Black); | 7 | p[Background] = TerminalDefault; |
8 | p[Shadow] = Light(BaseColor::Black); | 8 | p[Shadow] = TerminalDefault; |
9 | p[View] = Dark(BaseColor::Black); | 9 | p[View] = TerminalDefault; |
10 | p[Primary] = Dark(BaseColor::White); | 10 | p[Primary] = TerminalDefault; |
11 | p[Secondary] = Dark(BaseColor::Black); | 11 | p[Secondary] = TerminalDefault; |
12 | p[Tertiary] = Dark(BaseColor::Green); | 12 | p[Tertiary] = TerminalDefault; |
13 | p[TitlePrimary] = Light(BaseColor::White); | 13 | p[TitlePrimary] = TerminalDefault; |
14 | p[Highlight] = Dark(BaseColor::Red); | 14 | p[Highlight] = TerminalDefault; |
15 | p[HighlightInactive] = Dark(BaseColor::Black); | 15 | p[HighlightInactive] = TerminalDefault; |
16 | 16 | ||
17 | return p; | 17 | return p; |
18 | } | 18 | } |
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 { | |||
53 | "magenta".into() | 53 | "magenta".into() |
54 | } | 54 | } |
55 | fn light_black() -> String { | 55 | fn light_black() -> String { |
56 | "light_black".into() | 56 | "light black".into() |
57 | } | 57 | } |
58 | 58 | ||
59 | impl Default for Colors { | 59 | impl Default for Colors { |