fix QA issues

This commit is contained in:
DismissedLight
2024-05-30 22:13:44 +08:00
parent 2232772110
commit adf3f7e7b1
4 changed files with 31 additions and 29 deletions

View File

@@ -44,6 +44,7 @@
CornerRadius="{ThemeResource ControlCornerRadiusTop}">
<shci:CachedImage Source="{Binding Event.Banner}" Stretch="UniformToFill"/>
</cwc:ConstrainedBox>
<Border Margin="-1" Background="{ThemeResource DarkOnlyOverlayMaskColorBrush}"/>
</Grid>
<ScrollViewer Grid.Row="1">

View File

@@ -37,30 +37,33 @@
</Grid.RowDefinitions>
<!-- Image Layer -->
<Border cw:UIElementExtensions.ClipToBounds="True" CornerRadius="{ThemeResource ControlCornerRadiusTop}">
<Border
x:Name="ImageZoomBorder"
VerticalAlignment="Top"
cw:VisualExtensions.NormalizedCenterPoint="0.5">
<cww:ConstrainedBox
Margin="-4"
AspectRatio="1080:390"
CornerRadius="{ThemeResource ControlCornerRadiusTop}">
<shci:CachedImage
VerticalAlignment="Center"
PlaceholderMargin="16"
PlaceholderSource="{StaticResource UI_EmotionIcon271}"
Source="{Binding Banner}"
Stretch="UniformToFill"/>
</cww:ConstrainedBox>
<cwa:Explicit.Animations>
<cwa:AnimationSet x:Name="ImageZoomInAnimation">
<shca:ImageZoomInAnimation/>
</cwa:AnimationSet>
<cwa:AnimationSet x:Name="ImageZoomOutAnimation">
<shca:ImageZoomOutAnimation/>
</cwa:AnimationSet>
</cwa:Explicit.Animations>
</Border>
<Grid>
<Border
x:Name="ImageZoomBorder"
VerticalAlignment="Top"
cw:VisualExtensions.NormalizedCenterPoint="0.5">
<cww:ConstrainedBox
Margin="-4"
AspectRatio="1080:390"
CornerRadius="{ThemeResource ControlCornerRadiusTop}">
<shci:CachedImage
VerticalAlignment="Center"
PlaceholderMargin="16"
PlaceholderSource="{StaticResource UI_EmotionIcon271}"
Source="{Binding Banner}"
Stretch="UniformToFill"/>
</cww:ConstrainedBox>
<cwa:Explicit.Animations>
<cwa:AnimationSet x:Name="ImageZoomInAnimation">
<shca:ImageZoomInAnimation/>
</cwa:AnimationSet>
<cwa:AnimationSet x:Name="ImageZoomOutAnimation">
<shca:ImageZoomOutAnimation/>
</cwa:AnimationSet>
</cwa:Explicit.Animations>
</Border>
<Border Background="{ThemeResource DarkOnlyOverlayMaskColorBrush}"/>
</Grid>
</Border>
<!-- Time Description -->
<Border

View File

@@ -288,10 +288,8 @@ internal sealed partial class LaunchGameViewModel : Abstraction.ViewModel, IView
return;
}
if (Directory.Exists(gameFileSystem.ScreenShotDirectory))
{
await Windows.System.Launcher.LaunchFolderPathAsync(gameFileSystem.ScreenShotDirectory);
}
Directory.CreateDirectory(gameFileSystem.ScreenShotDirectory);
await Windows.System.Launcher.LaunchFolderPathAsync(gameFileSystem.ScreenShotDirectory);
}
private async ValueTask SetSelectedSchemeAsync(LaunchScheme? value)

View File

@@ -325,7 +325,7 @@ internal sealed partial class SettingViewModel : Abstraction.ViewModel
await DataFolderView.SetFolderSizeAsync().ConfigureAwait(false);
}
infoBarService.Information(SH.ViewModelSettingActionComplete);
infoBarService.Success(SH.ViewModelSettingActionComplete);
}
}