bug(uad-ng): logo not visible on Windows 11 light mode

- added logo dark logo
This commit is contained in:
Ed B 2024-03-18 21:34:52 +02:00
commit cfa9011906
4 changed files with 796 additions and 23 deletions

812
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,7 @@ self-update = ["flate2", "tar"]
no-self-update = []
[dependencies]
dark-light = { version = "^1.0.0" }
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
static_init = "^1.0"

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -376,7 +376,11 @@ impl Application for UadGui {
impl UadGui {
pub fn start() -> iced::Result {
let logo = include_bytes!("../../resources/assets/logo.png");
let logo: &[u8] = match dark_light::detect() {
dark_light::Mode::Dark => include_bytes!("../../resources/assets/logo-dark.png"),
dark_light::Mode::Light => include_bytes!("../../resources/assets/logo.png"),
dark_light::Mode::Default => include_bytes!("../../resources/assets/logo.png"),
};
Self::run(Settings {
window: Window {