Skip to content
Discussion options

You must be logged in to vote

I'm not sure if this is the preferred way to do things, but it's how we did it, hopefully it helps: https://github.com/Satellite-im/Uplink/blob/dev/src/main.rs#L181-L209

  use tao::window::WindowBuilder;
  ...

    let window = WindowBuilder::new()
        .with_title(DEFAULT_WINDOW_NAME.read().clone())
        .with_resizable(true)
        .with_inner_size(LogicalSize::new(950.0, 600.0))
        .with_min_inner_size(LogicalSize::new(330.0, 500.0));

    dioxus::desktop::launch_with_props(
        App,
        None,
        |c| c.with_window(|_| window),
    );

}

The menu stuff is something some systems (like MacOS) require in order to enable keybinds like copy paste and select all.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Solaris235
Comment options

@koskeller
Comment options

@miaomiaowu0428
Comment options

@ealmloff
Comment options

Answer selected by Solaris235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants