Configurable background

This commit is contained in:
Kenny Levinsen
2019-09-07 00:24:58 +02:00
parent d419946959
commit d10883169f
5 changed files with 22 additions and 7 deletions
+4 -1
View File
@@ -107,6 +107,9 @@ fn main() {
config::OutputMode::Active => OutputMode::Active,
};
let background = config.background;
let (tx_draw, rx_draw) = channel();
let tx_draw_mod = tx_draw.clone();
let (mod_tx, mod_rx) = channel();
@@ -118,7 +121,7 @@ fn main() {
}
});
let mut app = App::new(tx_draw, output_mode, scale);
let mut app = App::new(tx_draw, output_mode, background, scale);
let widget = mod_rx.recv().unwrap();
app.set_widget(widget).unwrap();