From 97ea1c7a9e75d54233a1e409dd5061ff9dbf5161 Mon Sep 17 00:00:00 2001
From: 2dust <31833384+2dust@users.noreply.github.com>
Date: Sat, 3 Aug 2024 15:59:00 +0800
Subject: [PATCH] Add toolTip
---
v2rayN/v2rayN/Resx/ResUI.Designer.cs | 9 +++++++++
v2rayN/v2rayN/Resx/ResUI.resx | 3 +++
v2rayN/v2rayN/Resx/ResUI.zh-Hans.resx | 3 +++
v2rayN/v2rayN/Resx/ResUI.zh-Hant.resx | 3 +++
v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs | 3 ++-
v2rayN/v2rayN/ViewModels/OptionSettingViewModel.cs | 3 ++-
v2rayN/v2rayN/Views/ClashConnectionsView.xaml | 3 ++-
v2rayN/v2rayN/Views/ClashProxiesView.xaml | 6 ++++--
v2rayN/v2rayN/Views/MsgView.xaml | 6 ++++--
v2rayN/v2rayN/Views/ProfilesView.xaml | 9 ++++++---
10 files changed, 38 insertions(+), 10 deletions(-)
diff --git a/v2rayN/v2rayN/Resx/ResUI.Designer.cs b/v2rayN/v2rayN/Resx/ResUI.Designer.cs
index 697ebb69..025f9ab5 100644
--- a/v2rayN/v2rayN/Resx/ResUI.Designer.cs
+++ b/v2rayN/v2rayN/Resx/ResUI.Designer.cs
@@ -996,6 +996,15 @@ namespace v2rayN.Resx {
}
}
+ ///
+ /// 查找类似 Auto column width adjustment 的本地化字符串。
+ ///
+ public static string menuProfileAutofitColumnWidth {
+ get {
+ return ResourceManager.GetString("menuProfileAutofitColumnWidth", resourceCulture);
+ }
+ }
+
///
/// 查找类似 Promotion 的本地化字符串。
///
diff --git a/v2rayN/v2rayN/Resx/ResUI.resx b/v2rayN/v2rayN/Resx/ResUI.resx
index 6159aa68..ed56bf04 100644
--- a/v2rayN/v2rayN/Resx/ResUI.resx
+++ b/v2rayN/v2rayN/Resx/ResUI.resx
@@ -1261,4 +1261,7 @@
Outbound DNS address
+
+ Auto column width adjustment
+
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Resx/ResUI.zh-Hans.resx b/v2rayN/v2rayN/Resx/ResUI.zh-Hans.resx
index 20879c75..85835b85 100644
--- a/v2rayN/v2rayN/Resx/ResUI.zh-Hans.resx
+++ b/v2rayN/v2rayN/Resx/ResUI.zh-Hans.resx
@@ -1258,4 +1258,7 @@
Outbound域名解析地址
+
+ 自动调整列宽
+
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Resx/ResUI.zh-Hant.resx b/v2rayN/v2rayN/Resx/ResUI.zh-Hant.resx
index bbda0508..18aa6d58 100644
--- a/v2rayN/v2rayN/Resx/ResUI.zh-Hant.resx
+++ b/v2rayN/v2rayN/Resx/ResUI.zh-Hant.resx
@@ -1138,4 +1138,7 @@
打開儲存所在的位置
+
+ 自動調整列寬
+
\ No newline at end of file
diff --git a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs
index 23da4a0c..c98f26cc 100644
--- a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs
+++ b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs
@@ -1209,11 +1209,12 @@ namespace v2rayN.ViewModels
y => y != null && !y.IsNullOrEmpty())
.Subscribe(c =>
{
- if (!Utils.IsNullOrEmpty(CurrentLanguage))
+ if (!Utils.IsNullOrEmpty(CurrentLanguage) && _config.uiItem.currentLanguage != CurrentLanguage)
{
_config.uiItem.currentLanguage = CurrentLanguage;
Thread.CurrentThread.CurrentUICulture = new(CurrentLanguage);
ConfigHandler.SaveConfig(_config);
+ _noticeHandler?.Enqueue(ResUI.NeedRebootTips);
}
});
}
diff --git a/v2rayN/v2rayN/ViewModels/OptionSettingViewModel.cs b/v2rayN/v2rayN/ViewModels/OptionSettingViewModel.cs
index b8f7e629..95a9387c 100644
--- a/v2rayN/v2rayN/ViewModels/OptionSettingViewModel.cs
+++ b/v2rayN/v2rayN/ViewModels/OptionSettingViewModel.cs
@@ -268,7 +268,8 @@ namespace v2rayN.ViewModels
var needReboot = (EnableStatistics != _config.guiItem.enableStatistics
|| EnableDragDropSort != _config.uiItem.enableDragDropSort
|| EnableHWA != _config.guiItem.enableHWA
- || CurrentFontFamily != _config.uiItem.currentFontFamily);
+ || CurrentFontFamily != _config.uiItem.currentFontFamily
+ || MainGirdOrientation != (int)_config.uiItem.mainGirdOrientation);
//if (Utile.IsNullOrEmpty(Kcpmtu.ToString()) || !Utile.IsNumeric(Kcpmtu.ToString())
// || Utile.IsNullOrEmpty(Kcptti.ToString()) || !Utile.IsNumeric(Kcptti.ToString())
diff --git a/v2rayN/v2rayN/Views/ClashConnectionsView.xaml b/v2rayN/v2rayN/Views/ClashConnectionsView.xaml
index 2b8dd925..6f220850 100644
--- a/v2rayN/v2rayN/Views/ClashConnectionsView.xaml
+++ b/v2rayN/v2rayN/Views/ClashConnectionsView.xaml
@@ -43,7 +43,8 @@
Width="24"
Height="24"
Margin="8,0"
- Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}">
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
+ ToolTip="{x:Static resx:ResUI.menuConnectionCloseAll}">
diff --git a/v2rayN/v2rayN/Views/ClashProxiesView.xaml b/v2rayN/v2rayN/Views/ClashProxiesView.xaml
index 62d77bf9..4dac1c81 100644
--- a/v2rayN/v2rayN/Views/ClashProxiesView.xaml
+++ b/v2rayN/v2rayN/Views/ClashProxiesView.xaml
@@ -61,7 +61,8 @@
Width="24"
Height="24"
Margin="8,0"
- Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}">
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
+ ToolTip="{x:Static resx:ResUI.menuProxiesReload}">
@@ -70,7 +71,8 @@
Width="24"
Height="24"
Margin="8,0"
- Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}">
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
+ ToolTip="{x:Static resx:ResUI.menuProxiesDelaytest}">
diff --git a/v2rayN/v2rayN/Views/MsgView.xaml b/v2rayN/v2rayN/Views/MsgView.xaml
index 2f8cfd45..005fb824 100644
--- a/v2rayN/v2rayN/Views/MsgView.xaml
+++ b/v2rayN/v2rayN/Views/MsgView.xaml
@@ -31,7 +31,8 @@
Height="24"
Margin="8,0"
Click="menuMsgViewCopyAll_Click"
- Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}">
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
+ ToolTip="{x:Static resx:ResUI.menuMsgViewCopyAll}">
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
+ ToolTip="{x:Static resx:ResUI.menuSubEdit}">
@@ -56,7 +58,8 @@
Width="30"
Height="30"
Margin="20,0"
- Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}">
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
+ ToolTip="{x:Static resx:ResUI.menuProfileAutofitColumnWidth}">