Set minimum size on dialog and desktop popups

This commit is contained in:
Jeremy Soller 2024-10-04 11:16:41 -06:00
parent 191af673b1
commit 01f0b0967a
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 2 additions and 0 deletions

View file

@ -2072,6 +2072,7 @@ impl Application for App {
for path in selected_paths {
let mut settings = window::Settings::default();
settings.decorations = true;
settings.min_size = Some(Size::new(360.0, 180.0));
settings.resizable = true;
settings.size = Size::new(480.0, 600.0);
settings.transparent = true;

View file

@ -164,6 +164,7 @@ impl<M: Send + 'static> Dialog<M> {
let mut settings = window::Settings::default();
settings.decorations = false;
settings.exit_on_close_request = false;
settings.min_size = Some(Size::new(360.0, 180.0));
settings.resizable = true;
settings.size = Size::new(1024.0, 640.0);
settings.transparent = true;