Update
This commit is contained in:
parent
8f41d83a3d
commit
26817b0e3c
10
Cargo.toml
10
Cargo.toml
|
@ -7,9 +7,9 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.31"
|
||||
fltk = { version = "1.4.36", features = ["fltk-bundled"] }
|
||||
fltk-theme = "0.7.3"
|
||||
tokio = { version = "1.41.1", features = ["full"] }
|
||||
futures = "0.3"
|
||||
fltk = { version = "1.5", features = ["fltk-bundled"] }
|
||||
fltk-theme = "0.7"
|
||||
tokio = { version = "1.42", features = ["full"] }
|
||||
# bytes = "1.9"
|
||||
dotenv = "^0.15"
|
||||
dotenv = "0.15"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
extern crate dotenv;
|
||||
|
||||
use fltk::{prelude::*, app, text::SimpleTerminal, enums::Color, frame, window, /*button,*/ image};
|
||||
use fltk::{prelude::*, app, terminal::Terminal, enums::Color, frame, window, /*button,*/ image};
|
||||
use fltk_theme::{/*ColorTheme, color_themes, widget_themes, */WidgetTheme, ThemeType, WidgetScheme, SchemeType};
|
||||
|
||||
use tokio::io::{self, BufReader, AsyncBufReadExt};
|
||||
|
@ -92,7 +92,8 @@ async fn gui() -> io::Result<()> {
|
|||
.with_label("Arch Linux Updater");
|
||||
|
||||
// let image = image::PngImage::load("assets/icons/Melawy.png").unwrap();
|
||||
let image = image::PngImage::load("/usr/share/arch-linux-updater/assets/icons/Melawy.png").unwrap();
|
||||
// let image = image::PngImage::load("/usr/share/arch-linux-updater/assets/icons/Melawy.png").unwrap();
|
||||
let image = image::SvgImage::load("/usr/share/arch-linux-updater/assets/icons/Melawy.svg").unwrap();
|
||||
// let image = image::PngImage::load(&std::path::Path::new("assets/icons/Melawy.png")).unwrap();
|
||||
wind.set_icon(Some(image));
|
||||
|
||||
|
@ -100,7 +101,7 @@ async fn gui() -> io::Result<()> {
|
|||
.with_size(width, height)
|
||||
.center_of(&wind);
|
||||
|
||||
let mut terminal: SimpleTerminal = SimpleTerminal::default_fill()
|
||||
let mut terminal: Terminal = Terminal::default_fill()
|
||||
.with_size(width, height)
|
||||
.center_of(&frame);
|
||||
terminal.set_color(Color::Background2);
|
||||
|
|
Loading…
Reference in New Issue