dialog: allow resize, part of #335

This commit is contained in:
Jeremy Soller 2024-09-11 09:15:14 -06:00
parent ca664f009b
commit 1490820894
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -160,10 +160,8 @@ impl<M: Send + 'static> Dialog<M> {
settings.decorations = false;
settings.exit_on_close_request = false;
settings.transparent = true;
//TODO: allow resize!
settings.size = Size::new(1024.0, 640.0);
settings.resizable = false;
settings.resizable = true;
#[cfg(target_os = "linux")]
{
@ -535,8 +533,6 @@ impl Application for App {
fn init(mut core: Core, flags: Self::Flags) -> (Self, Command<Message>) {
core.window.show_maximize = false;
core.window.show_minimize = false;
//TODO: make set_nav_bar_toggle_condensed pub
core.nav_bar_toggle_condensed();
let title = flags.kind.title();
let accept_label = flags.kind.accept_label();