From 1d48f294dcc8143bfeae2d63315e81d98b89b711 Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Fri, 3 Jul 2020 01:10:28 +0200 Subject: [PATCH] main: add stylesheet, comment out inactive includes Signed-off-by: Ralf Zerres --- advotracker/src/main.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/advotracker/src/main.rs b/advotracker/src/main.rs index 93704ce..5c5a845 100644 --- a/advotracker/src/main.rs +++ b/advotracker/src/main.rs @@ -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> { 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> { 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);