From 1a5eeb94012c367ad74d6600cbfc4de80d11834d Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Thu, 9 Jan 2025 21:03:17 +0800 Subject: [PATCH 1/4] Adjust UI for desktop --- .../Views/BackupAndRestoreView.axaml | 10 +++++-- .../Views/CheckUpdateView.axaml | 18 ++++++------- v2rayN/v2rayN.Desktop/Views/MsgView.axaml | 4 +-- .../Views/OptionSettingWindow.axaml | 2 +- .../v2rayN.Desktop/Views/ProfilesView.axaml | 2 +- .../Views/RoutingRuleDetailsWindow.axaml | 4 +-- .../Views/RoutingSettingWindow.axaml | 27 ++++++------------- .../v2rayN.Desktop/Views/StatusBarView.axaml | 2 +- v2rayN/v2rayN/Views/CheckUpdateView.xaml | 1 - 9 files changed, 31 insertions(+), 39 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml index ecd12276..6023ca89 100644 --- a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml @@ -10,6 +10,12 @@ d:DesignWidth="800" x:DataType="vms:BackupAndRestoreViewModel" mc:Ignorable="d"> + + + + @@ -23,7 +29,7 @@ + Theme="{DynamicResource CardBorder}"> + Theme="{DynamicResource CardBorder}"> - + + - + - + - + - \ No newline at end of file diff --git a/v2rayN/v2rayN.Desktop/Views/MsgView.axaml b/v2rayN/v2rayN.Desktop/Views/MsgView.axaml index 99dd5121..041c992a 100644 --- a/v2rayN/v2rayN.Desktop/Views/MsgView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/MsgView.axaml @@ -65,7 +65,7 @@ Margin="8,0" HorizontalAlignment="Left" IsChecked="True" - Theme="{StaticResource SimpleToggleSwitch}" /> + Theme="{DynamicResource SimpleToggleSwitch}" /> + Theme="{DynamicResource SimpleToggleSwitch}" /> + Theme="{DynamicResource TagLabel}" /> + Orientation="Horizontal" + Spacing="4"> - + - + - - + + - + - + + Theme="{DynamicResource SimpleToggleSwitch}" /> From baf90cfbdd1bbe4048b40cbb04b69e73133894d0 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:00:00 +0800 Subject: [PATCH 2/4] Sing-box cache file specified path https://github.com/2dust/v2rayN/issues/6460 --- .../ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs index e4268916..26708d79 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs @@ -1259,7 +1259,8 @@ namespace ServiceLib.Services.CoreConfig singboxConfig.experimental ??= new Experimental4Sbox(); singboxConfig.experimental.cache_file = new CacheFile4Sbox() { - enabled = true + enabled = true, + path = Utils.GetConfigPath("cache.db") }; } From 127858d5822ef8eabad9f8e4432b719f5756ebf1 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:23:03 +0800 Subject: [PATCH 3/4] Adjust UI for desktop --- .../Views/BackupAndRestoreView.axaml | 23 ++++--- .../Views/BackupAndRestoreView.axaml.cs | 7 +- .../Views/CheckUpdateView.axaml | 3 +- .../Views/ClashProxiesView.axaml | 28 ++++---- v2rayN/v2rayN.Desktop/Views/MainWindow.axaml | 65 ++----------------- .../Views/ProfilesView.axaml.cs | 7 +- v2rayN/v2rayN.Desktop/Views/QrcodeView.axaml | 3 - .../v2rayN.Desktop/Views/QrcodeView.axaml.cs | 5 ++ 8 files changed, 54 insertions(+), 87 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml index 6023ca89..d61dae8a 100644 --- a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml @@ -5,10 +5,8 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib" - xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib" d:DesignHeight="450" d:DesignWidth="800" - x:DataType="vms:BackupAndRestoreViewModel" mc:Ignorable="d"> + + +