resize window to 800x600

This commit is contained in:
askiiart 2025-05-05 22:55:30 -05:00
parent 4b7b02a3ae
commit 18d8766df1
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -2,7 +2,10 @@ use std::process::exit;
// This is very heavily based off the iced getting started thing
// If you're reading this trying to learn how to use iced with this as an example, don't. Just read the docs.
use iced::widget::{Column, button, column, text};
use iced::{
Size,
widget::{Column, button, column, text},
};
use lazy_static::lazy_static;
lazy_static! {
@ -67,10 +70,12 @@ impl TextDisplay {
}
}
fn main() -> iced::Result {
iced::run(
fn main() {
iced::application(
"A thingy (definitely won't steal your cookies)",
TextDisplay::update,
TextDisplay::view,
)
.window_size(Size::new(800.0, 600.0))
.run().unwrap();
}