improve:OOBE
This commit is contained in:
@@ -12,6 +12,38 @@
|
|||||||
ShowInTaskbar="False"
|
ShowInTaskbar="False"
|
||||||
Background="{DynamicResource SettingsPageBackground}"
|
Background="{DynamicResource SettingsPageBackground}"
|
||||||
Loaded="OobeWindow_OnLoaded">
|
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 Margin="24">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
@@ -47,7 +79,7 @@
|
|||||||
<TextBlock x:Name="StepIndicatorText"
|
<TextBlock x:Name="StepIndicatorText"
|
||||||
FontSize="12"
|
FontSize="12"
|
||||||
Foreground="{DynamicResource SettingsPageAnnotationForeground}"
|
Foreground="{DynamicResource SettingsPageAnnotationForeground}"
|
||||||
Text="步骤 1 / 12" />
|
Text="步骤 1 / 3" />
|
||||||
<TextBlock x:Name="StepTitleText"
|
<TextBlock x:Name="StepTitleText"
|
||||||
Margin="0,4,0,0"
|
Margin="0,4,0,0"
|
||||||
FontSize="18"
|
FontSize="18"
|
||||||
@@ -505,9 +537,7 @@
|
|||||||
Height="32"
|
Height="32"
|
||||||
Margin="0,0,8,0"
|
Margin="0,0,8,0"
|
||||||
Content="上一步"
|
Content="上一步"
|
||||||
Background="#FF3A3A3A"
|
Style="{StaticResource OobeSecondaryButtonStyle}"
|
||||||
Foreground="White"
|
|
||||||
BorderBrush="#FF505050"
|
|
||||||
Click="BtnPreviousStep_Click" />
|
Click="BtnPreviousStep_Click" />
|
||||||
|
|
||||||
<Button x:Name="BtnConfirm"
|
<Button x:Name="BtnConfirm"
|
||||||
@@ -515,9 +545,7 @@
|
|||||||
Width="140"
|
Width="140"
|
||||||
Height="32"
|
Height="32"
|
||||||
Content="保存并开始使用"
|
Content="保存并开始使用"
|
||||||
Background="#FF0078D4"
|
Style="{StaticResource OobePrimaryButtonStyle}"
|
||||||
Foreground="White"
|
|
||||||
BorderBrush="#FF0078D4"
|
|
||||||
Click="BtnConfirm_Click" />
|
Click="BtnConfirm_Click" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user