Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to configure "always on/pin to top" option for the Dioxus Desktop #2354

Open
Andrew15-5 opened this issue Apr 21, 2024 · 3 comments
Labels
cli Related to the dioxus-cli program enhancement New feature or request

Comments

@Andrew15-5
Copy link
Contributor

Feature Request

The "always on top" feature is blocking the file choose window (<input type="file">), which is supposed to be a part of the app. So not only it blocks other dev windows (editor, dx and tailwind commands), but also itself. And when moving to the virtual desktop with that window and an editor, it will always refocus on that window, instead of the previously focused editor, which is just not a great DX, to put it mildly.

Implement Suggestion

Probably a toggle either in the Dioxus.toml file or in the dioxus::desktop::Config::new().

@SophieSilver
Copy link

You can pass a WindowBuilder to the config using Config::with_window().

The WindowBuilder lets you configure whether you want the window to always be on top (https://docs.rs/tao/latest/tao/window/struct.WindowBuilder.html#method.with_always_on_top).

@DogeDark
Copy link
Member

They mean for the CLI. It had a new feature that keeps the desktop window always on top while running in dev mode.

@DogeDark DogeDark added enhancement New feature or request cli Related to the dioxus-cli program labels Apr 22, 2024
@Andrew15-5
Copy link
Contributor Author

I think it's a new version of Dioxus and not dx.

The WindowBuilder method can serve as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants