diff options
author | Akshay <[email protected]> | 2021-01-25 09:51:36 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-01-25 09:51:36 +0000 |
commit | c26de6fbfd55cca906b9c184621a9f550cdcc0f1 (patch) | |
tree | c607cd0e5ba3d371a4d4529a76dde3305c3a8807 /src/theme.rs | |
parent | 85670bd3c1297053592c8c2863185bda681d5185 (diff) |
attempt to style cursor
Diffstat (limited to 'src/theme.rs')
-rw-r--r-- | src/theme.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/theme.rs b/src/theme.rs index 7ee65a1..e373b72 100644 --- a/src/theme.rs +++ b/src/theme.rs | |||
@@ -25,9 +25,10 @@ pub fn theme_gen() -> Theme { | |||
25 | return t; | 25 | return t; |
26 | } | 26 | } |
27 | 27 | ||
28 | pub fn cursor_gen() -> Style { | 28 | pub fn cursor_gen(foreground: Style) -> Style { |
29 | Style::from(ColorStyle::new( | 29 | Style::from(ColorStyle::new( |
30 | Light(cursive::theme::BaseColor::Blue), | ||
31 | TerminalDefault, | 30 | TerminalDefault, |
31 | Light(cursive::theme::BaseColor::Blue), | ||
32 | )) | 32 | )) |
33 | .combine(foreground) | ||
33 | } | 34 | } |