Skip to content

Commit

Permalink
feat: new style win tray icon & add blue icon when tun enable
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Dec 12, 2023
1 parent e92ee5d commit 79c7107
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 3 deletions.
Binary file removed backend/tauri/icons/win-tray-icon-activated.png
Binary file not shown.
Binary file added backend/tauri/icons/win-tray-icon-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added backend/tauri/icons/win-tray-icon-pink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions backend/tauri/src/core/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ impl Tray {

#[cfg(target_os = "windows")]
{
let indication_icon = if *system_proxy {
include_bytes!("../../icons/win-tray-icon-activated.png").to_vec()
let indication_icon = if *tun_mode {
include_bytes!("../../icons/win-tray-icon-blue.png").to_vec()
} else if *system_proxy {
include_bytes!("../../icons/win-tray-icon-pink.png").to_vec()
} else {
include_bytes!("../../icons/win-tray-icon.png").to_vec()
};
Expand Down
99 changes: 99 additions & 0 deletions src/assets/image/christmas-hat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions src/assets/image/logo-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/logo-christmas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/image/logo-pink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79c7107

Please sign in to comment.