From 4ea80fb54f2cd8afc17bac881e1691990340f513 Mon Sep 17 00:00:00 2001 From: Scott0902 Date: Sat, 21 Sep 2024 23:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=AD=97=E4=BD=93hinting?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/v2rayN/Views/AddServer2Window.xaml | 17 ++--- v2rayN/v2rayN/Views/AddServerWindow.xaml | 19 ++--- v2rayN/v2rayN/Views/DNSSettingWindow.xaml | 9 +-- .../Views/GlobalHotkeySettingWindow.xaml | 11 +-- v2rayN/v2rayN/Views/MainWindow.xaml | 69 ++++++++++++++----- v2rayN/v2rayN/Views/OptionSettingWindow.xaml | 9 +-- .../Views/RoutingRuleDetailsWindow.xaml | 9 +-- .../Views/RoutingRuleSettingWindow.xaml | 12 ++-- v2rayN/v2rayN/Views/RoutingSettingWindow.xaml | 11 +-- v2rayN/v2rayN/Views/SubEditWindow.xaml | 28 ++------ v2rayN/v2rayN/Views/SubSettingWindow.xaml | 14 ++-- 11 files changed, 121 insertions(+), 87 deletions(-) diff --git a/v2rayN/v2rayN/Views/AddServer2Window.xaml b/v2rayN/v2rayN/Views/AddServer2Window.xaml index 4e8b003c..d402ef3d 100644 --- a/v2rayN/v2rayN/Views/AddServer2Window.xaml +++ b/v2rayN/v2rayN/Views/AddServer2Window.xaml @@ -1,14 +1,14 @@  diff --git a/v2rayN/v2rayN/Views/AddServerWindow.xaml b/v2rayN/v2rayN/Views/AddServerWindow.xaml index 64fa23ec..555b669e 100644 --- a/v2rayN/v2rayN/Views/AddServerWindow.xaml +++ b/v2rayN/v2rayN/Views/AddServerWindow.xaml @@ -1,14 +1,14 @@  @@ -179,6 +180,7 @@ Grid.Row="1" Grid.Column="2" Margin="4,0" + Click="btnGUID_Click" Content="{x:Static resx:ResUI.TbGUID}" Style="{StaticResource DefButton}" /> @@ -338,6 +340,7 @@ Grid.Row="1" Grid.Column="2" Margin="4,0" + Click="btnGUID_Click" Content="{x:Static resx:ResUI.TbGUID}" Style="{StaticResource DefButton}" /> diff --git a/v2rayN/v2rayN/Views/DNSSettingWindow.xaml b/v2rayN/v2rayN/Views/DNSSettingWindow.xaml index 7776e418..55a77771 100644 --- a/v2rayN/v2rayN/Views/DNSSettingWindow.xaml +++ b/v2rayN/v2rayN/Views/DNSSettingWindow.xaml @@ -7,8 +7,8 @@ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:reactiveui="http://reactiveui.net" - xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib" - xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib" + xmlns:resx="clr-namespace:v2rayN.Resx" + xmlns:vms="clr-namespace:v2rayN.ViewModels" Title="{x:Static resx:ResUI.menuDNSSetting}" Width="1000" Height="700" @@ -19,8 +19,9 @@ ShowInTaskbar="False" TextElement.FontFamily="{x:Static conv:MaterialDesignFonts.MyFont}" TextElement.Foreground="{DynamicResource MaterialDesignBody}" - TextOptions.TextFormattingMode="Display" - TextOptions.TextRenderingMode="Auto" + TextOptions.TextFormattingMode="Ideal" + TextOptions.TextRenderingMode="ClearType" + TextOptions.TextHintingMode="Fixed" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> diff --git a/v2rayN/v2rayN/Views/GlobalHotkeySettingWindow.xaml b/v2rayN/v2rayN/Views/GlobalHotkeySettingWindow.xaml index 37bf6e23..fc60a163 100644 --- a/v2rayN/v2rayN/Views/GlobalHotkeySettingWindow.xaml +++ b/v2rayN/v2rayN/Views/GlobalHotkeySettingWindow.xaml @@ -7,8 +7,8 @@ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:reactiveui="http://reactiveui.net" - xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib" - xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib" + xmlns:resx="clr-namespace:v2rayN.Resx" + xmlns:vms="clr-namespace:v2rayN.ViewModels" Title="{x:Static resx:ResUI.menuSetting}" Width="700" Height="500" @@ -20,8 +20,9 @@ ShowInTaskbar="False" TextElement.FontFamily="{x:Static conv:MaterialDesignFonts.MyFont}" TextElement.Foreground="{DynamicResource MaterialDesignBody}" - TextOptions.TextFormattingMode="Display" - TextOptions.TextRenderingMode="Auto" + TextOptions.TextFormattingMode="Ideal" + TextOptions.TextRenderingMode="ClearType" + TextOptions.TextHintingMode="Fixed" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> @@ -34,11 +35,13 @@ x:Name="btnReset" Width="100" Margin="8,0" + Click="btnReset_Click" Content="{x:Static resx:ResUI.TbReset}" Style="{StaticResource DefButton}" /> -