aboutsummaryrefslogtreecommitdiff
path: root/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme.rs')
-rw-r--r--src/theme.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/theme.rs b/src/theme.rs
index 1d2cc36..e373b72 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::{BorderStyle, Palette, Theme}; 3use cursive::theme::{BorderStyle, ColorStyle, Palette, Style, 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();
@@ -24,3 +24,11 @@ pub fn theme_gen() -> Theme {
24 t.palette = pallete_gen(); 24 t.palette = pallete_gen();
25 return t; 25 return t;
26} 26}
27
28pub fn cursor_gen(foreground: Style) -> Style {
29 Style::from(ColorStyle::new(
30 TerminalDefault,
31 Light(cursive::theme::BaseColor::Blue),
32 ))
33 .combine(foreground)
34}