Skip to content

Commit 491a829

Browse files
feat: add Nepal flag SVG and update tray icon rendering for Windows
Introduced a compact Nepal flag SVG for the Windows tray icon, ensuring visibility against varying taskbar backgrounds. Updated the tray icon rendering logic to utilize the flag instead of displaying the date, while maintaining the ability to render the date for other platforms. Enhanced the icon rendering function to account for light and dark taskbar themes, ensuring appropriate color contrast for the digits. Added tests to verify the flag rendering and color adjustments based on the panel's light or dark state.
1 parent 634ecee commit 491a829

6 files changed

Lines changed: 309 additions & 33 deletions

File tree

Cargo.lock

Lines changed: 118 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/desktop/src-tauri/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ tauri-plugin-process = "2"
3636
tokio = { version = "1", features = ["macros", "rt"] }
3737
tiny-skia = "0.11"
3838
cosmic-text = "0.14"
39+
# Renders the bundled Nepal flag SVG for Windows' tray icon. Pinned to 0.44 —
40+
# the last resvg release on tiny-skia 0.11, matching the pin above rather than
41+
# the 0.12 that newer resvg wants. `default-features = false` drops text/font
42+
# support (`usvg`'s "text" feature and friends): the flag has no text in it.
43+
resvg = { version = "0.44", default-features = false }
3944

4045
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
4146
tauri-plugin-autostart = "2"
Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)