This commit is contained in:
Valeria Fadeeva 2025-02-03 03:09:55 +05:00
parent d6fca2592e
commit 66f58a3cae
1 changed files with 2 additions and 6 deletions

View File

@ -121,13 +121,9 @@ async fn gui() -> io::Result<()> {
image::SvgImage::load("/usr/share/melawy-linux-updater/assets/icons/Melawy.svg").unwrap();
win.set_icon(Some(image));
let frame = frame::Frame::default_fill()
.with_size(win.width(), win.height())
.center_of(&win);
let frame = frame::Frame::default_fill().center_of(&win);
let mut term: Terminal = Terminal::default_fill()
.with_size(win.width(), win.height())
.center_of(&frame);
let mut term: Terminal = Terminal::default_fill().center_of(&frame);
term.set_color(Color::Background2);
term.set_text_color(Color::Light2);
term.set_history_rows(5000);