mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-21 03:32:09 +08:00
feat(tray): add optional inline outbound modes in tray menu #5881
Closes #5881
This commit is contained in:
@@ -436,6 +436,23 @@ export const LayoutViewer = forwardRef<DialogRef>((_, ref) => {
|
||||
<Switch edge="end" />
|
||||
</GuardState>
|
||||
</Item>
|
||||
<Item>
|
||||
<ListItemText
|
||||
primary={t(
|
||||
"settings.components.verge.layout.fields.showOutboundModesInline",
|
||||
)}
|
||||
/>
|
||||
<GuardState
|
||||
value={verge?.tray_inline_outbound_modes ?? false}
|
||||
valueProps="checked"
|
||||
onCatch={onError}
|
||||
onFormat={onSwitchFormat}
|
||||
onChange={(e) => onChangeData({ tray_inline_outbound_modes: e })}
|
||||
onGuard={(e) => patchVerge({ tray_inline_outbound_modes: e })}
|
||||
>
|
||||
<Switch edge="end" />
|
||||
</GuardState>
|
||||
</Item>
|
||||
|
||||
<Item>
|
||||
<ListItemText
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "طي شريط التنقل",
|
||||
"trayIcon": "أيقونة شريط المهام",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "أيقونة شريط مهام عامة",
|
||||
"systemProxyTrayIcon": "أيقونة شريط المهام لوكيل النظام",
|
||||
"tunTrayIcon": "أيقونة شريط المهام لـ TUN",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Navigationsleiste einklappen",
|
||||
"trayIcon": "Tray-Symbol",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Standard-Tray-Symbol",
|
||||
"systemProxyTrayIcon": "Systemproxy-Tray-Symbol",
|
||||
"tunTrayIcon": "TUN-Modus-Tray-Symbol",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Collapse Navigation Bar",
|
||||
"trayIcon": "Tray Icon",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Common Tray Icon",
|
||||
"systemProxyTrayIcon": "System Proxy Tray Icon",
|
||||
"tunTrayIcon": "Tun Tray Icon",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Colapsar barra de navegación",
|
||||
"trayIcon": "Icono de la bandeja",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Icono de bandeja común",
|
||||
"systemProxyTrayIcon": "Icono de bandeja del proxy del sistema",
|
||||
"tunTrayIcon": "Icono de bandeja del modo TUN",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "جمع کردن نوار ناوبری",
|
||||
"trayIcon": "آیکون سینی سیستم",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "آیکون مشترک سینی سیستم",
|
||||
"systemProxyTrayIcon": "آیکون سینی پراکسی سیستم",
|
||||
"tunTrayIcon": "آیکون سینی Tun",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Ciutkan bilah navigasi",
|
||||
"trayIcon": "Ikon Tray",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Ikon Tray Umum",
|
||||
"systemProxyTrayIcon": "Ikon Tray Proksi Sistem",
|
||||
"tunTrayIcon": "Ikon Tray Tun",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "ナビゲーションバーを折りたたむ",
|
||||
"trayIcon": "トレイアイコン",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "通常のトレイアイコン",
|
||||
"systemProxyTrayIcon": "システムプロキシトレイアイコン",
|
||||
"tunTrayIcon": "TUNモードトレイアイコン",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "내비게이션 바 접기",
|
||||
"trayIcon": "트레이 아이콘",
|
||||
"showProxyGroupsInline": "프록시 그룹 인라인 표시",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "공용 트레이 아이콘",
|
||||
"systemProxyTrayIcon": "시스템 프록시 트레이 아이콘",
|
||||
"tunTrayIcon": "TUN 트레이 아이콘",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Свернуть панель навигации",
|
||||
"trayIcon": "Иконка в трее",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Общий значок в трее",
|
||||
"systemProxyTrayIcon": "Значок системного прокси в трее",
|
||||
"tunTrayIcon": "Значок TUN в трее",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Gezinme çubuğunu daralt",
|
||||
"trayIcon": "Tepsi Simgesi",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Genel Tepsi Simgesi",
|
||||
"systemProxyTrayIcon": "Sistem Vekil Tepsi Simgesi",
|
||||
"tunTrayIcon": "Tun Tepsi Simgesi",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "Навигация панелен җыю",
|
||||
"trayIcon": "Трей иконкасы",
|
||||
"showProxyGroupsInline": "Show Proxy Groups Inline",
|
||||
"showOutboundModesInline": "Show Outbound Modes Inline",
|
||||
"commonTrayIcon": "Гомуми трей иконкасы",
|
||||
"systemProxyTrayIcon": "Системалы прокси иконкасы",
|
||||
"tunTrayIcon": "Tun (виртуаль адаптер) иконкасы",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "收起导航栏",
|
||||
"trayIcon": "托盘图标",
|
||||
"showProxyGroupsInline": "将代理组显示在托盘一级菜单",
|
||||
"showOutboundModesInline": "将出站模式显示在托盘一级菜单",
|
||||
"commonTrayIcon": "常规托盘图标",
|
||||
"systemProxyTrayIcon": "系统代理托盘图标",
|
||||
"tunTrayIcon": "TUN 模式托盘图标",
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
"collapseNavBar": "收起導覽列",
|
||||
"trayIcon": "系統匣圖示",
|
||||
"showProxyGroupsInline": "將代理組顯示在系統匣一級選單",
|
||||
"showOutboundModesInline": "將出站模式顯示在系統匣一級選單",
|
||||
"commonTrayIcon": "一般系統匣圖示",
|
||||
"systemProxyTrayIcon": "系統代理系統匣圖示",
|
||||
"tunTrayIcon": "虛擬網路介面卡模式系統匣圖示",
|
||||
|
||||
@@ -432,6 +432,7 @@ export const translationKeys = [
|
||||
"settings.components.verge.layout.fields.collapseNavBar",
|
||||
"settings.components.verge.layout.fields.trayIcon",
|
||||
"settings.components.verge.layout.fields.showProxyGroupsInline",
|
||||
"settings.components.verge.layout.fields.showOutboundModesInline",
|
||||
"settings.components.verge.layout.fields.commonTrayIcon",
|
||||
"settings.components.verge.layout.fields.systemProxyTrayIcon",
|
||||
"settings.components.verge.layout.fields.tunTrayIcon",
|
||||
|
||||
@@ -626,6 +626,7 @@ export interface TranslationResources {
|
||||
navIcon: string;
|
||||
preferSystemTitlebar: string;
|
||||
proxyGroupIcon: string;
|
||||
showOutboundModesInline: string;
|
||||
showProxyGroupsInline: string;
|
||||
systemProxyTrayIcon: string;
|
||||
toastPosition: string;
|
||||
|
||||
Vendored
+1
@@ -823,6 +823,7 @@ interface IVergeConfig {
|
||||
// enable_tray_speed?: boolean;
|
||||
// enable_tray_icon?: boolean;
|
||||
tray_inline_proxy_groups?: boolean;
|
||||
tray_inline_outbound_modes?: boolean;
|
||||
enable_tun_mode?: boolean;
|
||||
enable_auto_light_weight_mode?: boolean;
|
||||
auto_light_weight_minutes?: number;
|
||||
|
||||
Reference in New Issue
Block a user