mirror of https://github.com/2dust/v2rayN
Improve
parent
e71525db0e
commit
6f22b74154
|
@ -1906,6 +1906,15 @@ namespace v2rayN.Resx {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 Auto ScrollToEnd 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string TbAutoScrollToEnd {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("TbAutoScrollToEnd", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 Domain, ip, process are auto sorted when saving 的本地化字符串。
|
/// 查找类似 Domain, ip, process are auto sorted when saving 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2338,6 +2347,15 @@ namespace v2rayN.Resx {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 (Domain or IP or ProcName) and Port and Protocol and InboundTag => OutboundTag 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string TbRuleMatchingTips {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("TbRuleMatchingTips", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 Ruleobject Doc 的本地化字符串。
|
/// 查找类似 Ruleobject Doc 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1183,4 +1183,10 @@
|
||||||
<data name="TbPath7" xml:space="preserve">
|
<data name="TbPath7" xml:space="preserve">
|
||||||
<value>obfs password</value>
|
<value>obfs password</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="TbRuleMatchingTips" xml:space="preserve">
|
||||||
|
<value>(Domain or IP or ProcName) and Port and Protocol and InboundTag => OutboundTag</value>
|
||||||
|
</data>
|
||||||
|
<data name="TbAutoScrollToEnd" xml:space="preserve">
|
||||||
|
<value>Auto ScrollToEnd</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -1180,4 +1180,10 @@
|
||||||
<data name="TbPath7" xml:space="preserve">
|
<data name="TbPath7" xml:space="preserve">
|
||||||
<value>混淆密码(obfs password)</value>
|
<value>混淆密码(obfs password)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="TbRuleMatchingTips" xml:space="preserve">
|
||||||
|
<value>(Domain 或 IP 或 进程名) 与 Port 与 Protocol 与 InboundTag => OutboundTag</value>
|
||||||
|
</data>
|
||||||
|
<data name="TbAutoScrollToEnd" xml:space="preserve">
|
||||||
|
<value>自动滚动到末尾</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -1153,4 +1153,10 @@
|
||||||
<data name="TbSettingsEnableIPv6Address" xml:space="preserve">
|
<data name="TbSettingsEnableIPv6Address" xml:space="preserve">
|
||||||
<value>啟用IPv6</value>
|
<value>啟用IPv6</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="TbRuleMatchingTips" xml:space="preserve">
|
||||||
|
<value>(Domain 或 IP 或 进程名) 与 Port 与 Protocol 与 InboundTag => OutboundTag</value>
|
||||||
|
</data>
|
||||||
|
<data name="TbAutoScrollToEnd" xml:space="preserve">
|
||||||
|
<value>自动滚动到末尾</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -101,7 +101,7 @@ namespace v2rayN.ViewModels
|
||||||
|
|
||||||
private void BrowseServer()
|
private void BrowseServer()
|
||||||
{
|
{
|
||||||
UI.Show(ResUI.CustomServerTips);
|
//UI.Show(ResUI.CustomServerTips);
|
||||||
|
|
||||||
if (UI.OpenFileDialog(out string fileName,
|
if (UI.OpenFileDialog(out string fileName,
|
||||||
"Config|*.json|YAML|*.yaml;*.yml|All|*.*") != true)
|
"Config|*.json|YAML|*.yaml;*.yml|All|*.*") != true)
|
||||||
|
|
|
@ -195,6 +195,13 @@
|
||||||
Style="{StaticResource ToolbarTextBlock}"
|
Style="{StaticResource ToolbarTextBlock}"
|
||||||
Text="{x:Static resx:ResUI.TipPreSocksPort}"
|
Text="{x:Static resx:ResUI.TipPreSocksPort}"
|
||||||
TextWrapping="Wrap" />
|
TextWrapping="Wrap" />
|
||||||
|
<TextBlock
|
||||||
|
Width="500"
|
||||||
|
Margin="8,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Style="{StaticResource ToolbarTextBlock}"
|
||||||
|
Text="{x:Static resx:ResUI.CustomServerTips}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -3,11 +3,9 @@
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:local="clr-namespace:v2rayN.Views"
|
|
||||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:resx="clr-namespace:v2rayN.Resx"
|
xmlns:resx="clr-namespace:v2rayN.Resx"
|
||||||
xmlns:vms="clr-namespace:v2rayN.ViewModels"
|
|
||||||
d:DesignHeight="450"
|
d:DesignHeight="450"
|
||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
@ -41,6 +39,16 @@
|
||||||
Margin="8,0"
|
Margin="8,0"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
IsChecked="True" />
|
IsChecked="True" />
|
||||||
|
<TextBlock
|
||||||
|
Margin="8,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Style="{StaticResource ToolbarTextBlock}"
|
||||||
|
Text="{x:Static resx:ResUI.TbAutoScrollToEnd}" />
|
||||||
|
<ToggleButton
|
||||||
|
x:Name="togScrollToEnd"
|
||||||
|
Margin="8,0"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
IsChecked="True" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBox
|
<TextBox
|
||||||
Name="txtMsg"
|
Name="txtMsg"
|
||||||
|
|
|
@ -9,9 +9,9 @@ namespace v2rayN.Views
|
||||||
{
|
{
|
||||||
public partial class MsgView
|
public partial class MsgView
|
||||||
{
|
{
|
||||||
private static Config _config;
|
private static Config? _config;
|
||||||
|
|
||||||
private string lastMsgFilter;
|
private string lastMsgFilter = string.Empty;
|
||||||
private bool lastMsgFilterNotAvailable;
|
private bool lastMsgFilterNotAvailable;
|
||||||
|
|
||||||
public MsgView()
|
public MsgView()
|
||||||
|
@ -65,6 +65,11 @@ namespace v2rayN.Views
|
||||||
lastMsgFilter = MsgFilter;
|
lastMsgFilter = MsgFilter;
|
||||||
|
|
||||||
ShowMsg(msg);
|
ShowMsg(msg);
|
||||||
|
|
||||||
|
if (togScrollToEnd.IsChecked ?? true)
|
||||||
|
{
|
||||||
|
txtMsg.ScrollToEnd();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowMsg(string msg)
|
private void ShowMsg(string msg)
|
||||||
|
@ -78,7 +83,6 @@ namespace v2rayN.Views
|
||||||
{
|
{
|
||||||
this.txtMsg.AppendText(Environment.NewLine);
|
this.txtMsg.AppendText(Environment.NewLine);
|
||||||
}
|
}
|
||||||
txtMsg.ScrollToEnd();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ClearMsg()
|
public void ClearMsg()
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:conv="clr-namespace:v2rayN.Converters"
|
xmlns:conv="clr-namespace:v2rayN.Converters"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:reactiveui="http://reactiveui.net"
|
xmlns:reactiveui="http://reactiveui.net"
|
||||||
xmlns:resx="clr-namespace:v2rayN.Resx"
|
xmlns:resx="clr-namespace:v2rayN.Resx"
|
||||||
|
@ -36,6 +35,7 @@
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
|
@ -52,6 +52,13 @@
|
||||||
Margin="4"
|
Margin="4"
|
||||||
MaxDropDownHeight="1000"
|
MaxDropDownHeight="1000"
|
||||||
Style="{StaticResource DefComboBox}" />
|
Style="{StaticResource DefComboBox}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
Margin="4"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource ToolbarTextBlock}"
|
||||||
|
Text="{x:Static resx:ResUI.TbRuleMatchingTips}" />
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
|
@ -68,6 +75,16 @@
|
||||||
Margin="4"
|
Margin="4"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Style="{StaticResource DefTextBox}" />
|
Style="{StaticResource DefTextBox}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="2"
|
||||||
|
Margin="4"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Style="{StaticResource ToolbarTextBlock}">
|
||||||
|
<Hyperlink Click="linkRuleobjectDoc_Click">
|
||||||
|
<TextBlock Text="{x:Static resx:ResUI.TbRuleobjectDoc}" />
|
||||||
|
</Hyperlink>
|
||||||
|
</TextBlock>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
|
@ -115,18 +132,8 @@
|
||||||
HorizontalAlignment="Left" />
|
HorizontalAlignment="Left" />
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Row="5"
|
Grid.Row="4"
|
||||||
Grid.Column="0"
|
Grid.Column="2"
|
||||||
Margin="4"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Style="{StaticResource ToolbarTextBlock}">
|
|
||||||
<Hyperlink Click="linkRuleobjectDoc_Click">
|
|
||||||
<TextBlock Text="{x:Static resx:ResUI.TbRuleobjectDoc}" />
|
|
||||||
</Hyperlink>
|
|
||||||
</TextBlock>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="5"
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="4"
|
Margin="4"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Style="{StaticResource ToolbarTextBlock}"
|
Style="{StaticResource ToolbarTextBlock}"
|
||||||
|
@ -144,7 +151,7 @@
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<CheckBox x:Name="chkAutoSort">
|
<CheckBox x:Name="chkAutoSort">
|
||||||
<TextBlock Style="{StaticResource ToolbarTextBlock}" Text="{x:Static resx:ResUI.TbAutoSort}" />
|
<TextBlock Style="{StaticResource ToolbarTextBlock}" Text="{x:Static resx:ResUI.TbAutoSort}" />
|
||||||
|
|
Loading…
Reference in New Issue