aboutsummaryrefslogtreecommitdiff
path: root/src/theme.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-19 06:25:52 +0100
committerAkshay <[email protected]>2020-07-19 06:25:52 +0100
commite46a6819b5f6a83ae81b3484369d2072c7f09d35 (patch)
tree2ab58c7c0ac8fb28e0982a8d45a711403d6b6890 /src/theme.rs
parent6efda9445a89ccbe30aff30f846119129bf3e53c (diff)
improve command mode positioning/ux
Diffstat (limited to 'src/theme.rs')
-rw-r--r--src/theme.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theme.rs b/src/theme.rs
index 5c4072b..f29b273 100644
--- a/src/theme.rs
+++ b/src/theme.rs
@@ -1,6 +1,6 @@
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::{BaseColor, BorderStyle, ColorStyle, 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();
@@ -8,7 +8,7 @@ pub fn pallete_gen() -> Palette {
8 p[Shadow] = Light(BaseColor::Black); 8 p[Shadow] = Light(BaseColor::Black);
9 p[View] = Dark(BaseColor::Black); 9 p[View] = Dark(BaseColor::Black);
10 p[Primary] = Dark(BaseColor::White); 10 p[Primary] = Dark(BaseColor::White);
11 p[Secondary] = Light(BaseColor::Black); 11 p[Secondary] = Dark(BaseColor::Black);
12 p[Tertiary] = Dark(BaseColor::Green); 12 p[Tertiary] = Dark(BaseColor::Green);
13 p[TitlePrimary] = Light(BaseColor::White); 13 p[TitlePrimary] = Light(BaseColor::White);
14 p[Highlight] = Dark(BaseColor::Red); 14 p[Highlight] = Dark(BaseColor::Red);
@@ -20,7 +20,7 @@ pub fn pallete_gen() -> Palette {
20pub fn theme_gen() -> Theme { 20pub fn theme_gen() -> Theme {
21 let mut t = Theme::default(); 21 let mut t = Theme::default();
22 t.shadow = false; 22 t.shadow = false;
23 t.borders = BorderStyle::Simple; 23 t.borders = BorderStyle::None;
24 t.palette = pallete_gen(); 24 t.palette = pallete_gen();
25 return t; 25 return t;
26} 26}