I am building a MFA-type application.
How does one go about setting the initial height and width of the application window ? It should be something trivial to do I'd imagine and yet, no luck. I looked at all the examples and they all start with the very same window dimensions.
I can change the width and height of the widgets themselves. Just not the window (other than using the mouse of course)
Am I being blind here ?
I am running on Linux (arch linux) if that makes a difference for this problem.
Great lib otherwise, still learning how to use it.
Thanks
You should be able to use the window field in Settings when calling Application::run.
Thanks a lot @hecrj . I was pulling my hair on such a trivial goal ;-)
In case anyone else is also wondering:
use iced::{Settings, window};
let settings = Settings {
window: window::Settings {
size: (300,500),
resizable: true,
decorations: true,
},
..Default::default()
};
Most helpful comment
Thanks a lot @hecrj . I was pulling my hair on such a trivial goal ;-)
In case anyone else is also wondering: