Work on scroll list style. Tranfer scroll list to src root.
This commit is contained in:
+2
-19
@@ -33,6 +33,7 @@ use crate::stages::welcome::WelcomeStage;
|
||||
|
||||
rust_i18n::i18n!("src/locales", fallback = "en");
|
||||
mod kira_theming;
|
||||
mod kira_scroll_list;
|
||||
mod stage;
|
||||
mod stages;
|
||||
|
||||
@@ -90,17 +91,6 @@ impl KiraState {
|
||||
}
|
||||
}
|
||||
|
||||
// impl KiraState {
|
||||
// fn new(toml_config: toml::Table) -> Self {
|
||||
|
||||
// Self {
|
||||
// current_view: Views::Start,
|
||||
// toml_config: toml_config,
|
||||
// config: KiraConfig { config_trail: Vec::new() }
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
fn view(k_state: &KiraState) -> Element<'_, Message> {
|
||||
match &k_state.current_view {
|
||||
@@ -232,15 +222,8 @@ fn update(k_state: &mut KiraState, message: Message) -> Task<Message> {
|
||||
}
|
||||
}
|
||||
|
||||
// pub fn main_interface() -> iced::Result {
|
||||
// iced::run(WellcomeStage::update, WellcomeStage::view)
|
||||
// }
|
||||
|
||||
pub fn main() -> ExitCode {
|
||||
// let app_init = || {
|
||||
// let mut k_state = KiraState::default()
|
||||
// k_state.current_view = Views::Welcome(WelcomeStage::new());
|
||||
// k_stateapp_init
|
||||
// };
|
||||
|
||||
let iced_result = iced::application(KiraState::boot, update, view)
|
||||
.window(iced::window::Settings {
|
||||
|
||||
Reference in New Issue
Block a user