#![allow(unused)]
fn main() {
use makepad_widgets ::* ;
live_design ! {
import makepad_widgets::base::*;
import makepad_widgets::theme_desktop_dark::*;
// ⚠️ look at here !!!
// although the root mod is pub to super
// you still need to write views::root
// because here is path not rs mod structure
import crate::views::root::*;
App = {{ App }}{
ui : <Root>{}
}
}
// ....
impl LiveRegister for App {
fn live_register (cx : & mut Cx) {
crate :: makepad_widgets ::live_design (cx) ;
// ⚠️ look at here !!! same as import
crate::views::root::live_design(cx);
}
}
app_main ! (App) ;
}