aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
-rw-r--r--src/theme.rs31
2 files changed, 17 insertions, 16 deletions
diff --git a/src/main.rs b/src/main.rs
index 89f5dcd..0dbed8f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -93,7 +93,7 @@ fn on_submit(s: &mut Cursive, name: &String) {
93 }; 93 };
94 94
95 // get the act together 95 // get the act together
96 let article_content = TextView::new(extract_formatter(extract)); 96 let article_content = TextView::new(extract_formatter(extract)).scrollable();
97 97
98 let links = SelectView::<String>::new() 98 let links = SelectView::<String>::new()
99 .with_all_str(link_vec) 99 .with_all_str(link_vec)
diff --git a/src/theme.rs b/src/theme.rs
index 05a6769..5d092d3 100644
--- a/src/theme.rs
+++ b/src/theme.rs
@@ -1,29 +1,30 @@
1use cursive::theme::Color::*; 1use cursive::theme;
2use cursive::theme::BaseColor::*; 2use cursive::theme::BaseColor::*;
3use cursive::theme::BorderStyle; 3use cursive::theme::BorderStyle;
4use cursive::theme; 4use cursive::theme::Color::*;
5use cursive::theme::PaletteColor::*;
5 6
6pub fn palette_gen() -> theme::Palette { 7pub fn palette_gen() -> theme::Palette {
7 let mut palette: theme::Palette = theme::Palette::default(); 8 let mut palette = theme::Palette::default();
8 9
9 palette.set_color("background" , Dark(Black)); 10 palette[Background] = Dark(Black);
10 palette.set_color("shadow" , Light(Black)); 11 palette[Shadow] = Light(Black);
11 palette.set_color("view" , Dark(Black)); 12 palette[View] = Dark(Black);
12 palette.set_color("primary" , Dark(White)); 13 palette[Primary] = Dark(White);
13 palette.set_color("secondary" , Light(Black)); 14 palette[Secondary] = Light(Black);
14 palette.set_color("teritary" , Dark(Green)); 15 palette[Tertiary] = Dark(Green);
15 palette.set_color("title_primary" , Dark(Blue)); 16 palette[TitlePrimary] = Dark(Blue);
16 palette.set_color("title_secondary" , Dark(Green)); 17 palette[TitleSecondary] = Dark(Green);
17 palette.set_color("highlight" , Dark(Blue)); 18 palette[Highlight] = Dark(Blue);
18 palette.set_color("highlight_inactive" , Light(Black)); 19 palette[HighlightInactive] = Light(Black);
19 20
20 palette 21 palette
21} 22}
22 23
23pub fn theme_gen() -> theme::Theme { 24pub fn theme_gen() -> theme::Theme {
24 let mut wikitheme = theme::load_default(); 25 let mut wikitheme = theme::Theme::default();
25 26
26 wikitheme.shadow = false; 27 wikitheme.shadow = false;
27 wikitheme.borders = BorderStyle::Simple; 28 wikitheme.borders = BorderStyle::Simple;
28 wikitheme.palette = palette_gen(); 29 wikitheme.palette = palette_gen();
29 30