Files
nessi 799bc6550e feat: add dynamic tray icon with connected/disconnected states and green checkmark badge
Add png dependency and tauri image-png feature to support custom tray icon rendering. Load base disconnected icon from bundled PNG and generate connected variant with green circular badge containing white checkmark overlay. Implement draw_check_badge, draw_line, and blend_pixel helpers using Bresenham's line algorithm for badge rendering. Store both icon variants and TrayIcon reference in TrayState and update icon
2026-03-18 10:28:03 +01:00

24 lines
667 B
TOML

[package]
name = "nexavpn-desktop"
version = "0.1.0"
description = "NexaVPN desktop client"
authors = ["NexaVPN"]
edition = "2021"
[lib]
name = "nexavpn_desktop"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.5.5" }
[dependencies]
base64 = "0.22"
png = "0.17"
rand_core = { version = "0.6", features = ["getrandom"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tauri = { version = "2.10.1", features = ["tray-icon", "image-png"] }
x25519-dalek = { version = "2.0", features = ["static_secrets"] }