diff options
author | Akshay <[email protected]> | 2021-01-25 10:15:03 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-01-25 10:15:03 +0000 |
commit | 9cdef4e296c77fb94d99553de05ba1aaa6c81ed8 (patch) | |
tree | 9c0f8d8b6fbf557cdf880a90d3ebb59df8392595 /src/theme.rs | |
parent | 84c154018ebdd19acae10d6c9c802b41353507dc (diff) |
fix cursor coloring
Diffstat (limited to 'src/theme.rs')
-rw-r--r-- | src/theme.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/theme.rs b/src/theme.rs index e373b72..7ae9efc 100644 --- a/src/theme.rs +++ b/src/theme.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use cursive::theme::Color::*; | 1 | use cursive::theme::Color::{self, *}; |
2 | use cursive::theme::PaletteColor::*; | 2 | use cursive::theme::PaletteColor::*; |
3 | use cursive::theme::{BorderStyle, ColorStyle, Palette, Style, Theme}; | 3 | use cursive::theme::{BorderStyle, ColorStyle, Palette, Style, Theme}; |
4 | 4 | ||
@@ -25,10 +25,6 @@ pub fn theme_gen() -> Theme { | |||
25 | return t; | 25 | return t; |
26 | } | 26 | } |
27 | 27 | ||
28 | pub fn cursor_gen(foreground: Style) -> Style { | 28 | pub fn cursor_bg() -> Color { |
29 | Style::from(ColorStyle::new( | 29 | Light(cursive::theme::BaseColor::Black) |
30 | TerminalDefault, | ||
31 | Light(cursive::theme::BaseColor::Blue), | ||
32 | )) | ||
33 | .combine(foreground) | ||
34 | } | 30 | } |