main: reflect new module structure
* include from assets * get widgets into place * introduce style extensions (theme_fluent) Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -23,8 +23,10 @@ use orbtk::prelude::*;
|
||||
|
||||
// The Main view
|
||||
use advotracker::{
|
||||
callbacks::policycheck_state::PolicyCheckState,
|
||||
widgets::main_view,
|
||||
widgets::{
|
||||
main_view,
|
||||
policycheck::policycheck_state::PolicyCheckState,
|
||||
}
|
||||
};
|
||||
|
||||
mod parse_args;
|
||||
@@ -39,8 +41,12 @@ struct Environment {
|
||||
rust_log: String,
|
||||
}
|
||||
|
||||
// Style extension
|
||||
static FLUENT_DARK_EXT: &str = include_str!("../assets/advotracker/advotracker_dark.ron");
|
||||
static FLUENT_LIGHT_EXT: &str = include_str!("../assets/advotracker/advotracker_light.ron");
|
||||
|
||||
// German localization file.
|
||||
static ADVOTRACKER_DE_DE: &str = include_str!("../resources/advotracker/advotracker_de_DE.ron");
|
||||
static ADVOTRACKER_DE_DE: &str = include_str!("../assets/advotracker/advotracker_de_DE.ron");
|
||||
|
||||
/// Get the active language environment.
|
||||
fn get_lang() -> String {
|
||||
|
||||
Reference in New Issue
Block a user