mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-28 02:52:53 +00:00
Compare commits
13 commits
96c023fa9a
...
182e3d0e72
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
182e3d0e72 | ||
|
|
e590547b30 | ||
|
|
a055108a53 | ||
|
|
72b5a40b95 | ||
|
|
cdde1fca09 | ||
|
|
9f9092e9c7 | ||
|
|
3f8bbb6074 | ||
|
|
9cc3122bda | ||
|
|
dafc765a82 | ||
|
|
b62cfd9d4b | ||
|
|
ff7fc64575 | ||
|
|
213c0cd793 | ||
|
|
5c38e96493 |
2 changed files with 25 additions and 6 deletions
|
|
@ -1278,12 +1278,12 @@ public class CoreConfigSingboxService
|
|||
detour = Global.DirectTag,
|
||||
strategy = string.IsNullOrEmpty(dNSItem?.DomainStrategy4Freedom) ? null : dNSItem?.DomainStrategy4Freedom,
|
||||
});
|
||||
dns4Sbox.rules.Add(new()
|
||||
dns4Sbox.rules.Insert(0, new()
|
||||
{
|
||||
server = tag,
|
||||
clash_mode = ERuleMode.Direct.ToString()
|
||||
});
|
||||
dns4Sbox.rules.Add(new()
|
||||
dns4Sbox.rules.Insert(0, new()
|
||||
{
|
||||
server = dns4Sbox.servers.Where(t => t.detour == Global.ProxyTag).Select(t => t.tag).FirstOrDefault() ?? "remote",
|
||||
clash_mode = ERuleMode.Global.ToString()
|
||||
|
|
|
|||
|
|
@ -18,9 +18,6 @@
|
|||
<UserControl.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
|
||||
<conv:DelayColorConverter x:Key="DelayColorConverter" />
|
||||
<Style x:Key="AccessibleMyChipListBoxItem" TargetType="ListBoxItem" BasedOn="{StaticResource MyChipListBoxItem}">
|
||||
<Setter Property="AutomationProperties.Name" Value="{Binding Remarks}" />
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<DockPanel>
|
||||
|
|
@ -29,7 +26,6 @@
|
|||
x:Name="lstGroup"
|
||||
MaxHeight="200"
|
||||
FontSize="{DynamicResource StdFontSize}"
|
||||
ItemContainerStyle="{StaticResource AccessibleMyChipListBoxItem}"
|
||||
Style="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBox}"
|
||||
AutomationProperties.Name="{x:Static resx:ResUI.menuSubscription}">
|
||||
<ListBox.ItemTemplate>
|
||||
|
|
@ -37,6 +33,29 @@
|
|||
<TextBlock Text="{Binding Remarks}" />
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem" BasedOn="{StaticResource MyChipListBoxItem}">
|
||||
<Setter Property="Focusable" Value="False" />
|
||||
<Setter Property="AutomationProperties.Name" Value="{Binding Remarks}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<RadioButton
|
||||
IsChecked="{TemplateBinding IsSelected}"
|
||||
Content="{TemplateBinding Content}"
|
||||
AutomationProperties.Name="{Binding Remarks}">
|
||||
<RadioButton.ContentTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock
|
||||
AutomationProperties.Name="{Binding Remarks}" />
|
||||
</DataTemplate>
|
||||
</RadioButton.ContentTemplate>
|
||||
</RadioButton>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
</ListBox>
|
||||
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Reference in a new issue