Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Dec 31, 2023
1 parent 2d5925b commit 7c6d266
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 14 deletions.
5 changes: 0 additions & 5 deletions src/Starward/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
TintOpacity="0.4" />

<Thickness x:Key="NavigationViewBorderThickness">0</Thickness>
<StaticResource x:Key="ComboBoxDropDownBackground" ResourceKey="CustomAcrylicBrush" />
<StaticResource x:Key="NavigationViewDefaultPaneBackground" ResourceKey="CustomAcrylicBrush" />
<StaticResource x:Key="ContentDialogTopOverlay" ResourceKey="ControlFillColorTransparentBrush" />

Expand All @@ -64,10 +63,6 @@
<Setter Property="Background" Value="{ThemeResource CustomAcrylicBrush}" />
</Style>

<!--<Style BasedOn="{StaticResource DefaultMenuFlyoutPresenterStyle}" TargetType="MenuFlyoutPresenter">
<Setter Property="Background" Value="{ThemeResource CustomAcrylicBrush}" />
</Style>-->

<Style TargetType="FontIcon">
<Setter Property="FontFamily" Value="ms-appx:///Assets/Font/Segoe Fluent Icons.ttf#Segoe Fluent Icons" />
</Style>
Expand Down
2 changes: 1 addition & 1 deletion src/Starward/MyWindows/WindowEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public unsafe virtual IntPtr BridgeSubclassProc(HWND hWnd, uint uMsg, IntPtr wPa
return ComCtl32.DefSubclassProc(hWnd, uMsg, wParam, lParam);
}




#endregion
Expand Down
1 change: 0 additions & 1 deletion src/Starward/Pages/ImageViewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Vanara.PInvoke;
using Windows.ApplicationModel.DataTransfer;
using Windows.Foundation;
using Windows.Storage;
Expand Down
4 changes: 2 additions & 2 deletions src/Starward/Pages/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ private async Task CheckUpdateAsync()

public void OnLanguageChanged(object? sender, LanguageChangedMessage message)
{
this.Bindings.Update();
UpdateNavigationViewItems();
if (message.Completed)
{
this.Bindings.Update();
UpdateNavigationViewItems();
NavigateTo(MainPage_Frame.SourcePageType, changeGameBiz: false);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Starward/Pages/ScreenshotPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Microsoft.Extensions.Logging;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media.Animation;
using Microsoft.UI.Xaml.Media.Imaging;
using Microsoft.UI.Xaml.Navigation;
using Starward.Core;
Expand Down
1 change: 0 additions & 1 deletion src/Starward/Pages/Setting/AboutSettingPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging;
using Microsoft.UI.Xaml.Media.Animation;
using Starward.Services;
using System;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/Starward/Pages/Setting/AdvancedSettingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind TestUrlProtocolCommand}"
CornerRadius="4,20,20,4"
CornerRadius="8,20,20,8"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xE76E;" />
Expand Down
3 changes: 1 addition & 2 deletions src/Starward/Pages/Setting/SettingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sp="using:Starward.Pages"
x:DefaultBindMode="OneWay"
Background="{ThemeResource CustomAcrylicBrush}"
mc:Ignorable="d">


<Grid>
<Grid Background="{ThemeResource CustomAcrylicBrush}">


<NavigationView Margin="12,24,0,0"
Expand Down

0 comments on commit 7c6d266

Please sign in to comment.