feat: reduce TimeSpan.

This commit is contained in:
Zhang Dian
2025-02-25 00:01:39 +08:00
parent 186eed1870
commit 381e28ed6b
3 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ public partial class SplashViewModel: ObservableObject, IDialogContext
public SplashViewModel() public SplashViewModel()
{ {
DispatcherTimer.Run(OnUpdate, TimeSpan.FromMilliseconds(200), DispatcherPriority.Default); DispatcherTimer.Run(OnUpdate, TimeSpan.FromMilliseconds(20), DispatcherPriority.Default);
} }
private bool OnUpdate() private bool OnUpdate()

View File

@@ -17,7 +17,7 @@
Grid.Column="0" Grid.Column="0"
Width="64" Width="64"
Margin="0,0,16,0" Margin="0,0,16,0"
Fill="{DynamicResource SemiGrey5}" /> Fill="{DynamicResource SemiColorText2}" />
<StackPanel Grid.Row="0" Grid.Column="1"> <StackPanel Grid.Row="0" Grid.Column="1">
<TextBlock <TextBlock
Classes="H2" Classes="H2"

View File

@@ -23,7 +23,7 @@
Grid.Column="0" Grid.Column="0"
Width="64" Width="64"
Margin="0,0,16,0" Margin="0,0,16,0"
Fill="{DynamicResource SemiGrey5}" /> Fill="{DynamicResource SemiColorText2}" />
<StackPanel Grid.Row="0" Grid.Column="1"> <StackPanel Grid.Row="0" Grid.Column="1">
<TextBlock <TextBlock
Classes="H2" Classes="H2"
@@ -33,6 +33,7 @@
</StackPanel> </StackPanel>
<ProgressBar <ProgressBar
Grid.Row="1" Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2" Grid.ColumnSpan="2"
Margin="0,16,0,0" Margin="0,16,0,0"
Value="{Binding Progress}" /> Value="{Binding Progress}" />
@@ -51,4 +52,4 @@
Text="Aesthetic Evolution of Productivity" /> Text="Aesthetic Evolution of Productivity" />
</StackPanel> </StackPanel>
</Grid> </Grid>
</u:SplashWindow> </u:SplashWindow>