2dust 2025-02-20 14:07:12 +08:00
parent ee75dd37af
commit 2e6c82c851
2 changed files with 32 additions and 24 deletions

View File

@ -1,4 +1,4 @@
<UserControl <UserControl
x:Class="v2rayN.Desktop.Views.BackupAndRestoreView" x:Class="v2rayN.Desktop.Views.BackupAndRestoreView"
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@ -55,7 +55,8 @@
<Separator <Separator
Grid.Row="2" Grid.Row="2"
Grid.Column="0" Grid.Column="0"
Grid.ColumnSpan="2" /> Grid.ColumnSpan="2"
Margin="0,8" />
<TextBlock <TextBlock
Grid.Row="3" Grid.Row="3"
@ -193,7 +194,8 @@
<Separator <Separator
Grid.Row="2" Grid.Row="2"
Grid.Column="0" Grid.Column="0"
Grid.ColumnSpan="2" /> Grid.ColumnSpan="2"
Margin="0,8" />
<TextBlock <TextBlock
Grid.Row="3" Grid.Row="3"
Grid.Column="0" Grid.Column="0"
@ -211,4 +213,4 @@
</Border> </Border>
</StackPanel> </StackPanel>
</DockPanel> </DockPanel>
</UserControl> </UserControl>

View File

@ -1,4 +1,4 @@
<UserControl <UserControl
x:Class="v2rayN.Desktop.Views.CheckUpdateView" x:Class="v2rayN.Desktop.Views.CheckUpdateView"
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@ -12,28 +12,34 @@
mc:Ignorable="d"> mc:Ignorable="d">
<DockPanel Classes="Margin8"> <DockPanel Classes="Margin8">
<StackPanel <Border
HorizontalAlignment="Center" Margin="4"
Classes="Margin8" VerticalAlignment="Center"
DockPanel.Dock="Bottom" DockPanel.Dock="Bottom"
Orientation="Horizontal"> Theme="{DynamicResource CardBorder}">
<TextBlock <StackPanel
HorizontalAlignment="Left" HorizontalAlignment="Center"
VerticalAlignment="Center"
Classes="Margin8" Classes="Margin8"
Text="{x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" /> Orientation="Horizontal">
<ToggleSwitch
x:Name="togEnableCheckPreReleaseUpdate"
HorizontalAlignment="Left"
Classes="Margin8" />
<Button <TextBlock
x:Name="btnCheckUpdate" HorizontalAlignment="Left"
Width="100" VerticalAlignment="Center"
Classes="Margin8" Classes="Margin8"
Content="{x:Static resx:ResUI.menuCheckUpdate}" /> Text="{x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" />
</StackPanel> <ToggleSwitch
x:Name="togEnableCheckPreReleaseUpdate"
HorizontalAlignment="Left"
Classes="Margin8" />
<Button
x:Name="btnCheckUpdate"
Width="100"
Classes="Margin8"
Content="{x:Static resx:ResUI.menuCheckUpdate}" />
</StackPanel>
</Border>
<Border <Border
Margin="4" Margin="4"
@ -79,4 +85,4 @@
</ListBox> </ListBox>
</Border> </Border>
</DockPanel> </DockPanel>
</UserControl> </UserControl>