mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Setup UI within feature UI
The feature is not enabled yet. It will be enabled by default later when ui is ready.
This commit is contained in:
+7
-6
@@ -7,7 +7,7 @@ mod settings;
|
||||
mod steam;
|
||||
mod steamgriddb;
|
||||
use fltk::{app, prelude::*, window::Window};
|
||||
|
||||
mod mainview;
|
||||
|
||||
use crate::{
|
||||
egs::EpicPlatform,
|
||||
@@ -21,12 +21,13 @@ use steam_shortcuts_util::{shortcut::ShortcutOwned, shortcuts_to_bytes, Shortcut
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
let app = app::App::default();
|
||||
let mut wind = Window::new(100, 100, 400, 300, "Hello from rust");
|
||||
wind.end();
|
||||
wind.show();
|
||||
app.run().unwrap();
|
||||
#[cfg(feature = "ui")]
|
||||
{
|
||||
let app = app::App::default().with_scheme(app::Scheme::Gtk);
|
||||
let mut ui = mainview::UserInterface::make_window();
|
||||
|
||||
app.run().unwrap();
|
||||
}
|
||||
|
||||
let settings = Settings::new()?;
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unused_mut)]
|
||||
#![allow(unused_imports)]
|
||||
include!(concat!(env!("OUT_DIR"), "/mainview.rs"));
|
||||
Reference in New Issue
Block a user