aboutsummaryrefslogtreecommitdiff
path: root/src/theme.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-01-25 09:51:36 +0000
committerAkshay <[email protected]>2021-01-25 09:51:36 +0000
commitc26de6fbfd55cca906b9c184621a9f550cdcc0f1 (patch)
treec607cd0e5ba3d371a4d4529a76dde3305c3a8807 /src/theme.rs
parent85670bd3c1297053592c8c2863185bda681d5185 (diff)
attempt to style cursor
Diffstat (limited to 'src/theme.rs')
-rw-r--r--src/theme.rs5
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
28pub fn cursor_gen() -> Style { 28pub 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}