Fully refactored project architecture, imports and etc.
This commit is contained in:
24
src/main.rs
24
src/main.rs
@@ -1,29 +1,21 @@
|
||||
extern crate core;
|
||||
|
||||
use gtk4 as gtk;
|
||||
|
||||
use gtk::*;
|
||||
use view::*;
|
||||
use gtk::prelude::*;
|
||||
|
||||
#[path="ui_src/components/switch.rs"]
|
||||
mod switch;
|
||||
|
||||
#[path="ui_src/components/wrapper.rs"]
|
||||
mod wrapper;
|
||||
|
||||
#[path="ui_src/properties.rs"]
|
||||
mod properties;
|
||||
|
||||
#[path="utils/parse_input.rs"]
|
||||
mod parse_input;
|
||||
|
||||
#[path="utils/state_controller.rs"]
|
||||
mod state_controller;
|
||||
|
||||
mod view;
|
||||
use view::view::view_module::*;
|
||||
|
||||
mod model;
|
||||
|
||||
mod controller;
|
||||
use controller::*;
|
||||
|
||||
|
||||
fn main() {
|
||||
|
||||
let app = Application::builder()
|
||||
.application_id("com.github.gtk-rs.examples.basic")
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user