Better icon support
This commit is contained in:
parent
f1735beaa8
commit
0385fb8bf5
|
|
@ -24,3 +24,5 @@ cargo run --release
|
|||
Big thanks to https://github.com/unitycoder/UnityLauncherPro
|
||||
|
||||
Most of the required information about how data is stored by Unity HUB is taken from there.
|
||||
|
||||
Thanks for the icon to the [Papirus Development Team](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/)
|
||||
|
|
@ -1613,6 +1613,7 @@ dependencies = [
|
|||
"image",
|
||||
"rfd",
|
||||
"rusty_hub",
|
||||
"winres",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -2346,6 +2347,15 @@ dependencies = [
|
|||
"x11-dl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winres"
|
||||
version = "0.1.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c"
|
||||
dependencies = [
|
||||
"toml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wio"
|
||||
version = "0.2.2"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ name = "rusty_hub_egui"
|
|||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
homepage = "https://github.com/Leinnan/rusty_hub"
|
||||
build = "build.rs"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 'z'
|
||||
|
|
@ -21,3 +22,6 @@ egui_extras = "0.19.0"
|
|||
rusty_hub = { path="../rusty_hub" }
|
||||
image = { version = "0.24.0", default-features = false, features = ["png"] }
|
||||
rfd = "0.10.0"
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
winres = "0.1"
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#[cfg(windows)]
|
||||
extern crate winres;
|
||||
|
||||
#[cfg(windows)]
|
||||
fn main() {
|
||||
let mut res = winres::WindowsResource::new();
|
||||
res.set_icon("static/hub.ico");
|
||||
res.compile().unwrap();
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn main() {
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 190 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 674 B After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue