improve:OOBE

This commit is contained in:
2026-02-18 22:00:39 +08:00
parent 3ab1c59a05
commit 703e710006
+35 -7
View File
@@ -12,6 +12,38 @@
ShowInTaskbar="False"
Background="{DynamicResource SettingsPageBackground}"
Loaded="OobeWindow_OnLoaded">
<Window.Resources>
<Style x:Key="OobeSecondaryButtonStyle" TargetType="Button">
<Setter Property="Background" Value="{DynamicResource SettingsPageBackground}" />
<Setter Property="Foreground" Value="{DynamicResource SettingsPageForeground}" />
<Setter Property="BorderBrush" Value="{DynamicResource SettingsPageBorderBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="6,0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="OobePrimaryButtonStyle"
TargetType="Button"
BasedOn="{StaticResource OobeSecondaryButtonStyle}">
<Setter Property="Background" Value="{DynamicResource HistoryWindowPrimaryBrush}" />
<Setter Property="BorderBrush" Value="{DynamicResource HistoryWindowPrimaryBrush}" />
<Setter Property="Foreground" Value="White" />
</Style>
</Window.Resources>
<Grid Margin="24">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
@@ -47,7 +79,7 @@
<TextBlock x:Name="StepIndicatorText"
FontSize="12"
Foreground="{DynamicResource SettingsPageAnnotationForeground}"
Text="步骤 1 / 12" />
Text="步骤 1 / 3" />
<TextBlock x:Name="StepTitleText"
Margin="0,4,0,0"
FontSize="18"
@@ -505,9 +537,7 @@
Height="32"
Margin="0,0,8,0"
Content="上一步"
Background="#FF3A3A3A"
Foreground="White"
BorderBrush="#FF505050"
Style="{StaticResource OobeSecondaryButtonStyle}"
Click="BtnPreviousStep_Click" />
<Button x:Name="BtnConfirm"
@@ -515,9 +545,7 @@
Width="140"
Height="32"
Content="保存并开始使用"
Background="#FF0078D4"
Foreground="White"
BorderBrush="#FF0078D4"
Style="{StaticResource OobePrimaryButtonStyle}"
Click="BtnConfirm_Click" />
</Grid>
</Grid>