Skip to content

Commit

Permalink
change layout of game setting page to adapt new ui Scighost#520
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Dec 2, 2023
1 parent 7217319 commit 5300448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Starward/Pages/GameSettingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Height="0"
IsHitTestVisible="False" />

<StackPanel Grid.ColumnSpan="1" Visibility="{x:Bind IsBaseSettingEnable}">
<StackPanel Margin="0,0,12,0" Visibility="{x:Bind IsBaseSettingEnable}">
<!-- 启动参数 -->
<TextBlock FontSize="20"
FontWeight="Bold"
Expand Down Expand Up @@ -98,6 +98,7 @@

<StackPanel Grid.Row="1"
Grid.Column="1"
Margin="-12,0,0,0"
Visibility="{x:Bind IsGraphicsSettingEnable}">
<!-- 图形设置 -->
<TextBlock FontSize="20"
Expand Down Expand Up @@ -286,12 +287,13 @@
</StackPanel>


<Grid Grid.Row="1" Background="{ThemeResource CustomAcrylicBrush}">
<Grid Name="Grid_ApplyBackground"
Grid.Row="1"
Background="{ThemeResource CustomOverlayAcrylicBrush}">

<StackPanel Margin="24,0,24,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
CornerRadius="18"
Orientation="Horizontal">
<Button Height="36"
BorderThickness="0"
Expand Down
4 changes: 4 additions & 0 deletions src/Starward/Pages/GameSettingPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ protected override void OnNavigatedTo(NavigationEventArgs e)

private async void Page_Loaded(object sender, RoutedEventArgs e)
{
if (AppConfig.EnableNavigationViewLeftCompact)
{
Grid_ApplyBackground.CornerRadius = new CornerRadius(8, 0, 0, 0);
}
InitializeResolutionItem();
await InitializeGameSettingAsync();
}
Expand Down

0 comments on commit 5300448

Please sign in to comment.