Merge #1116: Set minimum window size
3bca6faffe6f1802e08471af05548f355804767c set minimum window size (pythcoiner) Pull request description: fixes #506 i put ~~800x800~~ as default size, feel free to told me if you think something else more appropriate. edit: i change to 1000x800 so we can also close #507 (i do not have strong opinion, 1000 looks a bit large to me, but if we decide less than 1000 i think we shouls close #507 also) ACKs for top commit: edouardparis: ACK 3bca6faffe6f1802e08471af05548f355804767c Tree-SHA512: 673e40304c9070777ebcc539975fdc28b14df559330b68dd8f6b23f7ab09dee22364a037967604ab70e1ca9596ecc028930dbb80878faadd085f11e47d3fa491
This commit is contained in:
commit
610a95bf3b
@ -4,11 +4,10 @@ use std::{error::Error, io::Write, path::PathBuf, process, str::FromStr};
|
||||
|
||||
use iced::{
|
||||
event::{self, Event},
|
||||
executor,
|
||||
keyboard::{self},
|
||||
executor, keyboard,
|
||||
widget::{focus_next, focus_previous},
|
||||
window::settings::PlatformSpecific,
|
||||
Application, Command, Settings, Subscription,
|
||||
Application, Command, Settings, Size, Subscription,
|
||||
};
|
||||
use tracing::{error, info};
|
||||
use tracing_subscriber::filter::LevelFilter;
|
||||
@ -449,6 +448,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
let mut settings = Settings::with_flags((config, log_level));
|
||||
settings.window.icon = Some(image::liana_app_icon());
|
||||
settings.window.min_size = Some(Size {
|
||||
width: 1000.0,
|
||||
height: 800.0,
|
||||
});
|
||||
settings.default_text_size = text::P1_SIZE.into();
|
||||
settings.default_font = liana_ui::font::REGULAR;
|
||||
settings.window.exit_on_close_request = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user