2023-11-20 03:47:36 +00:00
|
|
|
use fitnesstrax;
|
|
|
|
use gtk::prelude::*;
|
|
|
|
use std::env;
|
|
|
|
|
|
|
|
struct AppState {}
|
|
|
|
|
|
|
|
struct AppWindow {
|
|
|
|
window: adw::ApplicationWindow,
|
|
|
|
}
|
|
|
|
|
2023-11-13 13:52:10 +00:00
|
|
|
fn main() {
|
|
|
|
println!("Hello, world!");
|
2023-11-20 03:47:36 +00:00
|
|
|
|
|
|
|
let app = adw::Application::builder()
|
|
|
|
.application_id("com.luminescent-dreams.fitnesstrax")
|
|
|
|
.resource_base_path("/com/luminescent-dreams/fitnesstrax")
|
|
|
|
.build();
|
|
|
|
|
|
|
|
/*
|
|
|
|
let runtime = tokio::runtime::Builder::new_multi_thread()
|
|
|
|
.enable_all()
|
|
|
|
.build()
|
|
|
|
.unwrap();
|
|
|
|
*/
|
|
|
|
|
|
|
|
let app = adw::Application::builder()
|
|
|
|
.application_id("com.luminescent-dreams.fitnesstrax")
|
|
|
|
.resource_base_path("/com/luminescent-dreams/fitnesstrax")
|
|
|
|
.build();
|
|
|
|
|
|
|
|
app.connect_activate(move |app| {
|
|
|
|
let window = adw::ApplicationWindow::new(app);
|
|
|
|
window.present();
|
|
|
|
});
|
|
|
|
|
|
|
|
let args: Vec<String> = env::args().collect();
|
|
|
|
ApplicationExtManual::run_with_args(&app, &args);
|
2023-11-13 13:52:10 +00:00
|
|
|
}
|