feat: support monochrome tray icon

This commit is contained in:
MystiPanda
2024-05-15 12:00:38 +08:00
parent 224c65438f
commit 21176d2fd3
13 changed files with 71 additions and 7 deletions

View File

@@ -42,6 +42,10 @@ pub struct IVerge {
/// common tray icon
pub common_tray_icon: Option<bool>,
/// tray icon
#[cfg(target_os = "macos")]
pub tray_icon: Option<String>,
/// menu icon
pub menu_icon: Option<String>,
@@ -198,6 +202,8 @@ impl IVerge {
traffic_graph: Some(true),
enable_memory_usage: Some(true),
enable_group_icon: Some(true),
#[cfg(target_os = "macos")]
tray_icon: Some("monochrome".into()),
menu_icon: Some("monochrome".into()),
common_tray_icon: Some(false),
sysproxy_tray_icon: Some(false),
@@ -255,6 +261,8 @@ impl IVerge {
patch!(traffic_graph);
patch!(enable_memory_usage);
patch!(enable_group_icon);
#[cfg(target_os = "macos")]
patch!(tray_icon);
patch!(menu_icon);
patch!(common_tray_icon);
patch!(sysproxy_tray_icon);