Improve UI look and feel (#36)

* Set ui theme to Greybird

* Improve text in UI

* Fix wrong comment in ui
This commit is contained in:
Philip Kristoffersen
2022-03-13 22:24:42 +01:00
committed by GitHub
parent 7c1a21c270
commit 1729562885
4 changed files with 80 additions and 30 deletions
+4 -1
View File
@@ -1,14 +1,17 @@
use crate::sync::run_sync;
use crate::ui::UserInterface;
use crate::{egs::get_default_location, settings::Settings};
use fltk::enums::Color;
use fltk::{app, prelude::*};
use fltk_theme::{ColorTheme, WidgetTheme, color_themes, ThemeType};
use futures::executor::block_on;
use std::error::Error;
use std::{cell::RefCell, rc::Rc};
pub async fn run_ui() -> Result<(), Box<dyn Error>> {
let app = app::App::default().with_scheme(app::Scheme::Gtk);
let widget_theme = WidgetTheme::new(ThemeType::Greybird);
widget_theme.apply();
let settings = Rc::new(RefCell::new(Settings::new()?));
let mut ui = UserInterface::make_window();
update_ui_with_settings(&mut ui, &settings.clone().borrow());