optimization

This commit is contained in:
DismissedLight
2024-07-07 22:22:26 +08:00
parent bfefbc58fa
commit f5dbabc586
2 changed files with 147 additions and 129 deletions

View File

@@ -589,7 +589,6 @@
<cwcont:Case Value="Grid">
<GridView
Margin="16,16,4,-4"
cwa:ItemsReorderAnimation.Duration="0:0:0.1"
ItemContainerStyle="{StaticResource LargeGridViewItemStyle}"
ItemTemplate="{StaticResource AvatarGridViewTemplate}"
ItemsSource="{Binding Summary.Avatars}"

View File

@@ -8,6 +8,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mxi="using:Microsoft.Xaml.Interactivity"
xmlns:mxic="using:Microsoft.Xaml.Interactions.Core"
xmlns:shuxb="using:Snap.Hutao.UI.Xaml.Behavior"
xmlns:shuxba="using:Snap.Hutao.UI.Xaml.Behavior.Action"
xmlns:shuxc="using:Snap.Hutao.UI.Xaml.Control"
xmlns:shuxvww="using:Snap.Hutao.UI.Xaml.View.Window.WebView2"
@@ -15,8 +16,18 @@
d:DataContext="{d:DesignInstance shv:TestViewModel}"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
<mxi:Interaction.Behaviors>
<shuxb:InvokeCommandOnLoadedBehavior Command="{Binding LoadCommand}"/>
</mxi:Interaction.Behaviors>
<Border Margin="16" Style="{ThemeResource AcrylicBorderCardStyle}">
<ScrollViewer>
<StackPanel Margin="16" Spacing="{StaticResource SettingsCardSpacing}">
<TextBlock
Margin="1,0,0,5"
Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}"
Text="WebView"/>
<cwc:SettingsCard Header="Adopt Calculator" IsClickEnabled="True">
<mxi:Interaction.Behaviors>
<mxic:EventTriggerBehavior EventName="Click">
@@ -65,6 +76,7 @@
</mxi:Interaction.Behaviors>
</cwc:SettingsCard>
<TextBlock Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}" Text="State"/>
<cwc:SettingsCard Header="Reset Guide State">
<Button
Command="{Binding ResetGuideStateCommand}"
@@ -79,6 +91,7 @@
Style="{ThemeResource SettingButtonStyle}"/>
</cwc:SettingsCard>
<TextBlock Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}" Text="Debug Information"/>
<cwc:SettingsCard Header="[Debug Only] Print ImageCache Failed Download Tasks">
<Button
Command="{Binding DebugPrintImageCacheFailedDownloadTasksCommand}"
@@ -86,6 +99,7 @@
Style="{ThemeResource SettingButtonStyle}"/>
</cwc:SettingsCard>
<TextBlock Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}" Text="Condition Override"/>
<cwc:SettingsCard Header="Suppress Metadata Initialization">
<ToggleSwitch IsOn="{Binding SuppressMetadataInitialization, Mode=TwoWay}"/>
</cwc:SettingsCard>
@@ -102,11 +116,13 @@
<ToggleSwitch IsOn="{Binding OverridePackageConvertDirectoryPermissionsRequirement, Mode=TwoWay}"/>
</cwc:SettingsCard>
<TextBlock Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}" Text="Gacha Service"/>
<cwc:SettingsCard
Command="{Binding CompensationGachaLogServiceTimeCommand}"
Header="Compensation GachaLog Service Time For 15 Days"
IsClickEnabled="True"/>
<TextBlock Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}" Text="Testing"/>
<cwc:SettingsCard
Command="{Binding ScreenCaptureCommand}"
Header="Screen Capture Test"
@@ -123,6 +139,7 @@
</StackPanel>
</cwc:SettingsCard>
<TextBlock Style="{ThemeResource SettingsSectionHeaderTextBlockStyle}" Text="Announcement"/>
<Expander
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
@@ -139,7 +156,7 @@
Text="{Binding Announcement.Link, Mode=TwoWay}"/>
<TextBox
Header="Version Threshold"
PlaceholderText="Max present version(leave empty to present in any version)"
PlaceholderText="Max present version(leave empty to present in all version)"
Text="{Binding Announcement.MaxPresentVersion, Mode=TwoWay}"/>
<TextBox
AcceptsReturn="True"
@@ -157,4 +174,6 @@
</Expander>
</StackPanel>
</ScrollViewer>
</Border>
</shuxc:ScopedPage>