Optimize UI

This commit is contained in:
2dust 2024-12-19 10:23:46 +08:00
parent 2b5cbb5e74
commit 4f48e8b190
4 changed files with 9 additions and 10 deletions

View file

@ -6,18 +6,18 @@
</Design.PreviewWith>
<Style Selector="TextBlock.Margin8">
<Setter Property="Margin" Value="10" />
<Setter Property="Margin" Value="8" />
</Style>
<Style Selector="StackPanel.Margin8">
<Setter Property="Margin" Value="10" />
<Setter Property="Margin" Value="8" />
</Style>
<Style Selector="DockPanel.Margin8">
<Setter Property="Margin" Value="10" />
<Setter Property="Margin" Value="8" />
</Style>
<Style Selector="WrapPanel.Margin8">
<Setter Property="Margin" Value="10" />
<Setter Property="Margin" Value="8" />
</Style>
<Style Selector="Grid.Margin8">
<Setter Property="Margin" Value="10" />
<Setter Property="Margin" Value="8" />
</Style>
</Styles>

View file

@ -50,7 +50,7 @@
<Border
Width="500"
Height="80"
Margin="-2"
Margin="-8"
VerticalAlignment="Center"
Theme="{StaticResource CardBorder}">
<Grid>

View file

@ -23,7 +23,6 @@
</StackPanel>
<StackPanel
Width="120"
Margin="8,0"
VerticalAlignment="Center"
DockPanel.Dock="Left">
@ -34,7 +33,6 @@
<StackPanel
x:Name="spEnableTun"
Width="100"
Margin="8,0"
VerticalAlignment="Center"
DockPanel.Dock="Left"

View file

@ -27,7 +27,7 @@
</StackPanel>
<StackPanel
Width="120"
Width="Auto"
Margin="{StaticResource MarginLeftRight8}"
VerticalAlignment="Center"
DockPanel.Dock="Left">
@ -38,7 +38,7 @@
<StackPanel
x:Name="spEnableTun"
Width="auto"
Width="Auto"
Margin="{StaticResource MarginLeftRight8}"
VerticalAlignment="Center"
DockPanel.Dock="Left"
@ -46,6 +46,7 @@
<TextBlock
Margin="{StaticResource MarginLeftRight8}"
VerticalAlignment="Center"
Style="{StaticResource StatusbarItem}"
Text="{x:Static resx:ResUI.TbEnableTunAs}" />
<ToggleButton
x:Name="togEnableTun"