main: add stylesheet, comment out inactive includes

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-07-03 01:10:28 +02:00
parent 2ba39436bc
commit 1d48f294dc

View File

@@ -5,14 +5,15 @@
* SPDX-License-Identifier: (0BSD or MIT)
*/
#[macro_use]
extern crate lazy_static;
//#[macro_use]
//extern crate lazy_static;
//use chrono::{Local, DateTime};
use locales::t;
//use serde::{Deserialize, Serialize};
use serde::Deserialize;
use std::{env, process};
use std::env;
//use std::process;
//use std::{error::Error, process};
//use std::collections::HashMap;
use tracing::{debug, trace, Level};
@@ -36,8 +37,8 @@ struct Environment {
}
//#[cfg(feature = "light-theme")]
//static STYLESHEET: &'static str = include_str!("../resources/stylesheets/advotracker.css");
static STYLESHEET: &'static str = include_str!("../resources/stylesheets/policyholder-check.css");
static STYLESHEET: &'static str = include_str!("../resources/stylesheets/advotracker.css");
//static STYLESHEET: &'static str = include_str!("../resources/stylesheets/policyholder-check.css");
fn get_theme() -> ThemeValue {
//ThemeValue::create_from_css(LIGHT_THEME_EXTENSION_CSS)
@@ -55,8 +56,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
use viperus::Viperus;
//use advotracker::callbacks::policy_check::is_valid;
use advotracker::services::imports::allianzdirectcall::*;
use advotracker::data::structures::{PolicyCode, PolicyDataList, PolicyList};
//use advotracker::data::structures::{PolicyCode, PolicyDataList, PolicyList};
// WIP: can't push pointer by value to widget, call import in widget callback for now
//use advotracker::services::imports::allianzdirectcall::*;
//static DEFAULT_FILTER: &str = concat!(module_path!(), "=", "trace");
@@ -124,7 +126,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
state = t!("state.started", lang);
trace!(target: "csv-test", process = ?res, state = ?state);
// moved to callback: checkview_state.rs
// WIP: can't push pointer by value to widget, call import in widget callback for now
// // importing policy code elements from csv-file
// let policy_list = PolicyList::new("Allianz Versicherungsnummen-List");
// println!("Policy List {:?} ", policy_list.name);