Force file dialog size
This commit is contained in:
parent
81dcd6c3eb
commit
5dc65515fc
1 changed files with 6 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ use cosmic::{
|
||||||
keyboard::{Event as KeyEvent, Modifiers},
|
keyboard::{Event as KeyEvent, Modifiers},
|
||||||
multi_window::Application as IcedApplication,
|
multi_window::Application as IcedApplication,
|
||||||
subscription::{self, Subscription},
|
subscription::{self, Subscription},
|
||||||
window, Event, Length,
|
window, Event, Length, Size,
|
||||||
},
|
},
|
||||||
style,
|
style,
|
||||||
widget::{self, segmented_button},
|
widget::{self, segmented_button},
|
||||||
|
|
@ -60,6 +60,11 @@ impl<M: 'static> Dialog<M> {
|
||||||
settings.exit_on_close_request = false;
|
settings.exit_on_close_request = false;
|
||||||
settings.transparent = true;
|
settings.transparent = true;
|
||||||
settings.platform_specific.application_id = App::APP_ID.to_string();
|
settings.platform_specific.application_id = App::APP_ID.to_string();
|
||||||
|
{
|
||||||
|
//TODO: allow resize!
|
||||||
|
settings.size = Size::new(800.0, 600.0);
|
||||||
|
settings.resizable = false;
|
||||||
|
}
|
||||||
let (window_id, window_command) = window::spawn(settings);
|
let (window_id, window_command) = window::spawn(settings);
|
||||||
|
|
||||||
let core = Core::default();
|
let core = Core::default();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue