feat: additional macos tray event handling option for menu display (#2958)

This commit is contained in:
Mimi
2025-03-13 09:48:49 +08:00
committed by Tunglies
parent 1bef6d085d
commit 124934b012
6 changed files with 40 additions and 19 deletions

View File

@@ -119,6 +119,7 @@ const SettingVergeBasic = ({ onError }: Props) => {
>
<Select size="small" sx={{ width: 140, "> div": { py: "7.5px" } }}>
<MenuItem value="main_window">{t("Show Main Window")}</MenuItem>
<MenuItem value="tray_menu">{t("Show Tray Menu")}</MenuItem>
<MenuItem value="system_proxy">{t("System Proxy")}</MenuItem>
<MenuItem value="tun_mode">{t("Tun Mode")}</MenuItem>
<MenuItem value="disable">{t("Disable")}</MenuItem>

View File

@@ -288,6 +288,7 @@
"theme.system": "System",
"Tray Click Event": "Tray Click Event",
"Show Main Window": "Show Main Window",
"Show Tray Menu": "Show Tray Menu",
"Copy Env Type": "Copy Env Type",
"Copy Success": "Copy Success",
"Start Page": "Start Page",

View File

@@ -287,6 +287,7 @@
"theme.system": "系统",
"Tray Click Event": "托盘点击事件",
"Show Main Window": "显示主窗口",
"Show Tray Menu": "显示托盘菜单",
"Copy Env Type": "复制环境变量类型",
"Copy Success": "复制成功",
"Start Page": "启动页面",

View File

@@ -718,7 +718,12 @@ interface IProxyConfig
interface IVergeConfig {
app_log_level?: "trace" | "debug" | "info" | "warn" | "error" | string;
language?: string;
tray_event?: "main_window" | "system_proxy" | "tun_mode" | string;
tray_event?:
| "main_window"
| "tray_menu"
| "system_proxy"
| "tun_mode"
| string;
env_type?: "bash" | "cmd" | "powershell" | "fish" | string;
startup_script?: string;
start_page?: string;