aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-08-04 08:46:22 +0100
committerAkshay <[email protected]>2020-08-04 08:46:22 +0100
commit3dd8502895d17b4e1a8afb729feeef5ba6d0474e (patch)
tree4dfc7364cdcae2de93d821520e7a2bc791754ab2 /src
parent403d114d8296fe37dbdb509449a2fee2badb8d37 (diff)
use terminal default for bg
Diffstat (limited to 'src')
-rw-r--r--src/theme.rs20
-rw-r--r--src/utils.rs2
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 @@
1use cursive::theme::Color::*; 1use cursive::theme::Color::*;
2use cursive::theme::PaletteColor::*; 2use cursive::theme::PaletteColor::*;
3use cursive::theme::{BaseColor, BorderStyle, Palette, Theme}; 3use cursive::theme::{BorderStyle, Palette, Theme};
4 4
5pub fn pallete_gen() -> Palette { 5pub 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}
55fn light_black() -> String { 55fn light_black() -> String {
56 "light_black".into() 56 "light black".into()
57} 57}
58 58
59impl Default for Colors { 59impl Default for Colors {