diff options
author | Akshay <[email protected]> | 2021-01-25 09:24:51 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-01-25 09:24:51 +0000 |
commit | cd03d732b1f0df6c020a94135db2db4b690a4937 (patch) | |
tree | 94da0cfb56711abb1d8344d1804882c93201902d /src/theme.rs | |
parent | 665fd3fb61891b73175690158cde38cf7f94ebc7 (diff) |
handle cursor events and entry
Diffstat (limited to 'src/theme.rs')
-rw-r--r-- | src/theme.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/theme.rs b/src/theme.rs index 1d2cc36..7ee65a1 100644 --- a/src/theme.rs +++ b/src/theme.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use cursive::theme::Color::*; | 1 | use cursive::theme::Color::*; |
2 | use cursive::theme::PaletteColor::*; | 2 | use cursive::theme::PaletteColor::*; |
3 | use cursive::theme::{BorderStyle, Palette, Theme}; | 3 | use cursive::theme::{BorderStyle, ColorStyle, Palette, Style, 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(); |
@@ -24,3 +24,10 @@ pub fn theme_gen() -> Theme { | |||
24 | t.palette = pallete_gen(); | 24 | t.palette = pallete_gen(); |
25 | return t; | 25 | return t; |
26 | } | 26 | } |
27 | |||
28 | pub fn cursor_gen() -> Style { | ||
29 | Style::from(ColorStyle::new( | ||
30 | Light(cursive::theme::BaseColor::Blue), | ||
31 | TerminalDefault, | ||
32 | )) | ||
33 | } | ||