mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
ui rework
This commit is contained in:
@@ -44,9 +44,7 @@ Install with Snap Hutao MSIX package, can be installed with Windows built-in App
|
|||||||
|
|
||||||
### 特定的原神项目 / Specific Genshin-related Projects
|
### 特定的原神项目 / Specific Genshin-related Projects
|
||||||
|
|
||||||
* [biuuu/genshin-wish-export](https://github.com/biuuu/genshin-wish-export)
|
* [Scighost/Starward](https://github.com/Scighost/Starward)
|
||||||
* [xunkong/xunkong](https://github.com/xunkong/xunkong)
|
|
||||||
* [YuehaiTeam/cocogoat](https://github.com/YuehaiTeam/cocogoat)
|
|
||||||
|
|
||||||
### 使用的技术栈 / Tech Stack
|
### 使用的技术栈 / Tech Stack
|
||||||
|
|
||||||
@@ -57,7 +55,6 @@ Install with Snap Hutao MSIX package, can be installed with Windows built-in App
|
|||||||
* [dotnet/efcore](https://github.com/dotnet/efcore)
|
* [dotnet/efcore](https://github.com/dotnet/efcore)
|
||||||
* [dotnet/runtime](https://github.com/dotnet/runtime)
|
* [dotnet/runtime](https://github.com/dotnet/runtime)
|
||||||
* [DotNetAnalyzers/StyleCopAnalyzers](https://github.com/DotNetAnalyzers/StyleCopAnalyzers)
|
* [DotNetAnalyzers/StyleCopAnalyzers](https://github.com/DotNetAnalyzers/StyleCopAnalyzers)
|
||||||
* [microsoft/CsWin32](https://github.com/microsoft/CsWin32)
|
|
||||||
* [microsoft/vs-validation](https://github.com/microsoft/vs-validation)
|
* [microsoft/vs-validation](https://github.com/microsoft/vs-validation)
|
||||||
* [microsoft/WindowsAppSDK](https://github.com/microsoft/WindowsAppSDK)
|
* [microsoft/WindowsAppSDK](https://github.com/microsoft/WindowsAppSDK)
|
||||||
* [microsoft/microsoft-ui-xaml](https://github.com/microsoft/microsoft-ui-xaml)
|
* [microsoft/microsoft-ui-xaml](https://github.com/microsoft/microsoft-ui-xaml)
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
// Copyright (c) DGP Studio. All rights reserved.
|
||||||
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
|
using CommunityToolkit.WinUI;
|
||||||
|
using Microsoft.UI.Xaml;
|
||||||
|
using Microsoft.UI.Xaml.Controls;
|
||||||
|
|
||||||
|
namespace Snap.Hutao.Control.Helper;
|
||||||
|
|
||||||
|
[SuppressMessage("", "SH001")]
|
||||||
|
[DependencyProperty("PaneCornerRadius", typeof(CornerRadius), default, nameof(OnPaneCornerRadiusChanged), IsAttached = true, AttachedType = typeof(NavigationView))]
|
||||||
|
public sealed partial class NavigationViewHelper
|
||||||
|
{
|
||||||
|
private static void OnPaneCornerRadiusChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args)
|
||||||
|
{
|
||||||
|
NavigationView navigationView = (NavigationView)dp;
|
||||||
|
CornerRadius newValue = (CornerRadius)args.NewValue;
|
||||||
|
|
||||||
|
if (navigationView.IsLoaded)
|
||||||
|
{
|
||||||
|
SetNavigationViewPaneCornerRadius(navigationView, newValue);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
navigationView.Loaded += (s, e) =>
|
||||||
|
{
|
||||||
|
NavigationView loadedNavigationView = (NavigationView)s;
|
||||||
|
SetNavigationViewPaneCornerRadius(loadedNavigationView, newValue);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SetNavigationViewPaneCornerRadius(NavigationView navigationView, CornerRadius value)
|
||||||
|
{
|
||||||
|
if (navigationView.FindDescendant("RootSplitView") is SplitView splitView)
|
||||||
|
{
|
||||||
|
splitView.CornerRadius = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -20,4 +20,4 @@ public sealed partial class SettingsExpanderHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,10 +24,33 @@
|
|||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}"/>
|
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
x:Key="AcrylicBorderCardStyle"
|
||||||
|
BasedOn="{StaticResource BorderCardStyle}"
|
||||||
|
TargetType="Border">
|
||||||
|
<Setter Property="Background" Value="{ThemeResource SystemControlAcrylicElementMediumHighBrush}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="GridCardStyle" TargetType="Grid">
|
<Style x:Key="GridCardStyle" TargetType="Grid">
|
||||||
<Setter Property="Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}"/>
|
<Setter Property="Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}"/>
|
||||||
<Setter Property="BorderBrush" Value="{ThemeResource CardStrokeColorDefaultBrush}"/>
|
<Setter Property="BorderBrush" Value="{ThemeResource CardStrokeColorDefaultBrush}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}"/>
|
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
x:Key="AcrylicGridCardStyle"
|
||||||
|
BasedOn="{StaticResource GridCardStyle}"
|
||||||
|
TargetType="Grid">
|
||||||
|
<Setter Property="Background" Value="{ThemeResource SystemControlAcrylicElementMediumHighBrush}"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style
|
||||||
|
x:Key="AcrylicBorderlessBorderCardStyle"
|
||||||
|
BasedOn="{StaticResource AcrylicBorderCardStyle}"
|
||||||
|
TargetType="Border">
|
||||||
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
</Style>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -2,6 +2,53 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:shch="using:Snap.Hutao.Control.Helper">
|
xmlns:shch="using:Snap.Hutao.Control.Helper">
|
||||||
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
|
<ResourceDictionary x:Key="Light">
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarErrorSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#FDE7E9"
|
||||||
|
TintColor="#FDE7E9"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarWarningSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#FFF4CE"
|
||||||
|
TintColor="#FFF4CE"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarSuccessSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#DFF6DD"
|
||||||
|
TintColor="#DFF6DD"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarInformationalSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#80F6F6F6"
|
||||||
|
TintColor="#80F6F6F6"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
<ResourceDictionary x:Key="Dark">
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarErrorSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#442726"
|
||||||
|
TintColor="#442726"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarWarningSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#433519"
|
||||||
|
TintColor="#433519"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarSuccessSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#393D1B"
|
||||||
|
TintColor="#393D1B"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
<AcrylicBrush
|
||||||
|
x:Key="InfoBarInformationalSeverityBackgroundBrush"
|
||||||
|
FallbackColor="#34424d"
|
||||||
|
TintColor="#34424d"
|
||||||
|
TintOpacity="0.6"/>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
|
|
||||||
<Thickness x:Key="InfoBarIconMargin">19,16,19,16</Thickness>
|
<Thickness x:Key="InfoBarIconMargin">19,16,19,16</Thickness>
|
||||||
<Thickness x:Key="InfoBarContentRootPadding">0,0,0,0</Thickness>
|
<Thickness x:Key="InfoBarContentRootPadding">0,0,0,0</Thickness>
|
||||||
<x:Double x:Key="InfoBarIconFontSize">20</x:Double>
|
<x:Double x:Key="InfoBarIconFontSize">20</x:Double>
|
||||||
|
|||||||
@@ -2,18 +2,18 @@
|
|||||||
x:Class="Snap.Hutao.MainWindow"
|
x:Class="Snap.Hutao.MainWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:cwuc="using:CommunityToolkit.WinUI.UI.Controls"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:shv="using:Snap.Hutao.View"
|
xmlns:shv="using:Snap.Hutao.View"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
|
<shv:MainView/>
|
||||||
|
|
||||||
<shv:TitleView
|
<shv:TitleView
|
||||||
x:Name="TitleBarView"
|
x:Name="TitleBarView"
|
||||||
Height="44"
|
Height="44"
|
||||||
Margin="48,0,0,0"/>
|
Margin="44,0,0,0"/>
|
||||||
|
|
||||||
<shv:MainView/>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
BIN
src/Snap.Hutao/Snap.Hutao/Resource/TestBackground.jpg
Normal file
BIN
src/Snap.Hutao/Snap.Hutao/Resource/TestBackground.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 MiB |
@@ -135,6 +135,7 @@
|
|||||||
<None Remove="Resource\Navigation\WikiMonster.png" />
|
<None Remove="Resource\Navigation\WikiMonster.png" />
|
||||||
<None Remove="Resource\Navigation\WikiWeapon.png" />
|
<None Remove="Resource\Navigation\WikiWeapon.png" />
|
||||||
<None Remove="Resource\Segoe Fluent Icons.ttf" />
|
<None Remove="Resource\Segoe Fluent Icons.ttf" />
|
||||||
|
<None Remove="Resource\TestBackground.jpg" />
|
||||||
<None Remove="Resource\WelcomeView_Background.png" />
|
<None Remove="Resource\WelcomeView_Background.png" />
|
||||||
<None Remove="stylecop.json" />
|
<None Remove="stylecop.json" />
|
||||||
<None Remove="View\Card\AchievementCard.xaml" />
|
<None Remove="View\Card\AchievementCard.xaml" />
|
||||||
@@ -277,6 +278,7 @@
|
|||||||
<Content Include="Resource\Navigation\WikiAvatar.png" />
|
<Content Include="Resource\Navigation\WikiAvatar.png" />
|
||||||
<Content Include="Resource\Navigation\WikiMonster.png" />
|
<Content Include="Resource\Navigation\WikiMonster.png" />
|
||||||
<Content Include="Resource\Navigation\WikiWeapon.png" />
|
<Content Include="Resource\Navigation\WikiWeapon.png" />
|
||||||
|
<Content Include="Resource\TestBackground.jpg" />
|
||||||
<Content Include="Resource\WelcomeView_Background.png" />
|
<Content Include="Resource\WelcomeView_Background.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
d:DataContext="{d:DesignInstance shva:AchievementViewModelSlim}"
|
d:DataContext="{d:DesignInstance shva:AchievementViewModelSlim}"
|
||||||
|
Background="Transparent"
|
||||||
Command="{Binding NavigateCommand}"
|
Command="{Binding NavigateCommand}"
|
||||||
Style="{ThemeResource DefaultButtonStyle}"
|
Style="{ThemeResource DefaultButtonStyle}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
d:DataContext="{d:DesignInstance shvd:DailyNoteViewModelSlim}"
|
d:DataContext="{d:DesignInstance shvd:DailyNoteViewModelSlim}"
|
||||||
|
Background="Transparent"
|
||||||
Command="{Binding NavigateCommand}"
|
Command="{Binding NavigateCommand}"
|
||||||
Style="{ThemeResource DefaultButtonStyle}"
|
Style="{ThemeResource DefaultButtonStyle}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
d:DataContext="{d:DesignInstance shvg:GachaLogViewModelSlim}"
|
d:DataContext="{d:DesignInstance shvg:GachaLogViewModelSlim}"
|
||||||
|
Background="Transparent"
|
||||||
Command="{Binding NavigateCommand}"
|
Command="{Binding NavigateCommand}"
|
||||||
Style="{ThemeResource DefaultButtonStyle}"
|
Style="{ThemeResource DefaultButtonStyle}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
d:DataContext="{d:DesignInstance shvg:LaunchGameViewModelSlim}"
|
d:DataContext="{d:DesignInstance shvg:LaunchGameViewModelSlim}"
|
||||||
|
Background="Transparent"
|
||||||
Command="{Binding LaunchCommand}"
|
Command="{Binding LaunchCommand}"
|
||||||
Style="{ThemeResource DefaultButtonStyle}"
|
Style="{ThemeResource DefaultButtonStyle}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:shch="using:Snap.Hutao.Control.Helper"
|
||||||
xmlns:shcm="using:Snap.Hutao.Control.Markup"
|
xmlns:shcm="using:Snap.Hutao.Control.Markup"
|
||||||
xmlns:shv="using:Snap.Hutao.View"
|
xmlns:shv="using:Snap.Hutao.View"
|
||||||
xmlns:shvh="using:Snap.Hutao.View.Helper"
|
xmlns:shvh="using:Snap.Hutao.View.Helper"
|
||||||
@@ -12,16 +13,34 @@
|
|||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<Thickness x:Key="NavigationViewContentMargin">0,44,0,0</Thickness>
|
<Thickness x:Key="NavigationViewContentMargin">0,44,0,0</Thickness>
|
||||||
<x:Double x:Key="NavigationViewItemOnLeftIconBoxHeight">24</x:Double>
|
<x:Double x:Key="NavigationViewItemOnLeftIconBoxHeight">24</x:Double>
|
||||||
|
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent"/>
|
||||||
|
<StaticResource x:Key="NavigationViewExpandedPaneBackground" ResourceKey="SystemControlBaseHighAcrylicElementBrush"/>
|
||||||
|
<Thickness x:Key="NavigationViewContentGridBorderThickness">0</Thickness>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|
||||||
|
<Image
|
||||||
|
Opacity="0.35"
|
||||||
|
Source="ms-appx:///Resource/TestBackground.jpg"
|
||||||
|
Stretch="UniformToFill"/>
|
||||||
|
|
||||||
<NavigationView
|
<NavigationView
|
||||||
x:Name="NavView"
|
x:Name="NavView"
|
||||||
|
Margin="-1,0,0,-1"
|
||||||
|
shch:NavigationViewHelper.PaneCornerRadius="8,0,0,8"
|
||||||
CompactPaneLength="48"
|
CompactPaneLength="48"
|
||||||
IsBackEnabled="{x:Bind ContentFrame.CanGoBack, Mode=OneWay}"
|
IsBackEnabled="{x:Bind ContentFrame.CanGoBack, Mode=OneWay}"
|
||||||
IsPaneOpen="True"
|
IsPaneOpen="True"
|
||||||
OpenPaneLength="192"
|
OpenPaneLength="192"
|
||||||
PaneDisplayMode="Left"
|
PaneDisplayMode="Left"
|
||||||
UseLayoutRounding="False">
|
UseLayoutRounding="False">
|
||||||
|
|
||||||
|
<NavigationView.Resources>
|
||||||
|
<StaticResource x:Key="NavigationViewExpandedPaneBackground" ResourceKey="SystemControlBaseHighAcrylicElementBrush"/>
|
||||||
|
<CornerRadius x:Key="NavigationViewContentGridCornerRadius">0</CornerRadius>
|
||||||
|
<CornerRadius x:Key="OverlayCornerRadius">0</CornerRadius>
|
||||||
|
</NavigationView.Resources>
|
||||||
|
|
||||||
<NavigationView.MenuItems>
|
<NavigationView.MenuItems>
|
||||||
<NavigationViewItem
|
<NavigationViewItem
|
||||||
shvh:NavHelper.NavigateTo="shvp:AnnouncementPage"
|
shvh:NavHelper.NavigateTo="shvp:AnnouncementPage"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<DataTemplate x:Key="AnnouncementTemplate">
|
<DataTemplate x:Key="AnnouncementTemplate">
|
||||||
<ItemContainer cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
<ItemContainer cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
||||||
<Border Style="{StaticResource BorderCardStyle}">
|
<Border Background="{ThemeResource SystemControlAcrylicElementMediumHighBrush}" Style="{StaticResource BorderCardStyle}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
@@ -187,10 +187,14 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<DataTemplate x:Key="CardTemplate" x:DataType="shvcp:CardReference">
|
<DataTemplate x:Key="CardTemplate" x:DataType="shvcp:CardReference">
|
||||||
<ItemContainer cw:Effects.Shadow="{ThemeResource CompatCardShadow}" Child="{Binding Card}">
|
<ItemContainer cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
||||||
<ItemContainer.Resources>
|
<ItemContainer.Resources>
|
||||||
<SolidColorBrush x:Key="ItemContainerPointerOverBackground" Color="Transparent"/>
|
<SolidColorBrush x:Key="ItemContainerPointerOverBackground" Color="Transparent"/>
|
||||||
</ItemContainer.Resources>
|
</ItemContainer.Resources>
|
||||||
|
|
||||||
|
<Border Background="{ThemeResource SystemControlAcrylicElementMediumHighBrush}" CornerRadius="{ThemeResource ControlCornerRadius}">
|
||||||
|
<ContentControl HorizontalContentAlignment="Stretch" Content="{Binding Card}"/>
|
||||||
|
</Border>
|
||||||
</ItemContainer>
|
</ItemContainer>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</shc:ScopedPage.Resources>
|
</shc:ScopedPage.Resources>
|
||||||
@@ -205,7 +209,7 @@
|
|||||||
Text="{Binding GreetingText}"/>
|
Text="{Binding GreetingText}"/>
|
||||||
|
|
||||||
<ItemsControl
|
<ItemsControl
|
||||||
Margin="16,8,12,0"
|
Margin="16,8,16,0"
|
||||||
ItemTemplate="{StaticResource HutaoAnnouncementTemplate}"
|
ItemTemplate="{StaticResource HutaoAnnouncementTemplate}"
|
||||||
ItemsSource="{Binding HutaoAnnouncements}"
|
ItemsSource="{Binding HutaoAnnouncements}"
|
||||||
Visibility="{Binding HutaoAnnouncements.Count, Converter={StaticResource Int32ToVisibilityConverter}}"/>
|
Visibility="{Binding HutaoAnnouncements.Count, Converter={StaticResource Int32ToVisibilityConverter}}"/>
|
||||||
|
|||||||
@@ -21,6 +21,15 @@
|
|||||||
<shcb:InvokeCommandOnLoadedBehavior Command="{Binding OpenUICommand}"/>
|
<shcb:InvokeCommandOnLoadedBehavior Command="{Binding OpenUICommand}"/>
|
||||||
</mxi:Interaction.Behaviors>
|
</mxi:Interaction.Behaviors>
|
||||||
|
|
||||||
|
<Page.Resources>
|
||||||
|
<SolidColorBrush x:Key="ToggleButtonBackground" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="ExpanderContentBackground" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="SettingsCardBackground" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="SettingsCardBackgroundDisabled" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="SettingsCardBackgroundPointerOver" Color="Transparent"/>
|
||||||
|
<SolidColorBrush x:Key="SettingsCardBackgroundPressed" Color="Transparent"/>
|
||||||
|
</Page.Resources>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<SplitView
|
<SplitView
|
||||||
DisplayMode="Inline"
|
DisplayMode="Inline"
|
||||||
@@ -31,154 +40,160 @@
|
|||||||
<SplitView.Pane>
|
<SplitView.Pane>
|
||||||
<ScrollViewer>
|
<ScrollViewer>
|
||||||
<StackPanel Margin="16" Spacing="3">
|
<StackPanel Margin="16" Spacing="3">
|
||||||
<cwc:SettingsExpander
|
<Border Style="{ThemeResource AcrylicBorderlessBorderCardStyle}">
|
||||||
Description="{Binding RuntimeOptions.Version}"
|
<cwc:SettingsExpander
|
||||||
Header="{shcm:ResourceString Name=AppName}"
|
Description="{Binding RuntimeOptions.Version}"
|
||||||
HeaderIcon="{shcm:FontIcon Glyph=}"
|
Header="{shcm:ResourceString Name=AppName}"
|
||||||
IsExpanded="True">
|
HeaderIcon="{shcm:FontIcon Glyph=}"
|
||||||
<cwc:SettingsExpander.Items>
|
IsExpanded="True">
|
||||||
<cwc:SettingsCard
|
<cwc:SettingsExpander.Items>
|
||||||
ActionIcon="{shcm:FontIcon Glyph=}"
|
<cwc:SettingsCard
|
||||||
ActionIconToolTip="{shcm:ResourceString Name=ViewPageSettingCopyDeviceIdAction}"
|
ActionIcon="{shcm:FontIcon Glyph=}"
|
||||||
Command="{Binding CopyDeviceIdCommand}"
|
ActionIconToolTip="{shcm:ResourceString Name=ViewPageSettingCopyDeviceIdAction}"
|
||||||
Description="{Binding RuntimeOptions.DeviceId}"
|
Command="{Binding CopyDeviceIdCommand}"
|
||||||
Header="{shcm:ResourceString Name=ViewPageSettingDeviceIdHeader}"
|
Description="{Binding RuntimeOptions.DeviceId}"
|
||||||
IsClickEnabled="True"/>
|
Header="{shcm:ResourceString Name=ViewPageSettingDeviceIdHeader}"
|
||||||
<cwc:SettingsCard Description="{Binding IPInformation}" Header="{shcm:ResourceString Name=ViewPageSettingDeviceIpHeader}"/>
|
IsClickEnabled="True"/>
|
||||||
<cwc:SettingsCard Description="{Binding RuntimeOptions.WebView2Version}" Header="{shcm:ResourceString Name=ViewPageSettingWebview2Header}"/>
|
<cwc:SettingsCard Description="{Binding IPInformation}" Header="{shcm:ResourceString Name=ViewPageSettingDeviceIpHeader}"/>
|
||||||
</cwc:SettingsExpander.Items>
|
<cwc:SettingsCard Description="{Binding RuntimeOptions.WebView2Version}" Header="{shcm:ResourceString Name=ViewPageSettingWebview2Header}"/>
|
||||||
</cwc:SettingsExpander>
|
</cwc:SettingsExpander.Items>
|
||||||
<cwc:SettingsExpander
|
</cwc:SettingsExpander>
|
||||||
Description="{shcm:ResourceString Name=ViewPageFeedbackEngageWithUsDescription}"
|
</Border>
|
||||||
Header="{shcm:ResourceString Name=ViewPageFeedbackCommonLinksHeader}"
|
<Border Style="{ThemeResource AcrylicBorderlessBorderCardStyle}">
|
||||||
HeaderIcon="{shcm:FontIcon Glyph=}"
|
<cwc:SettingsExpander
|
||||||
IsExpanded="True">
|
Description="{shcm:ResourceString Name=ViewPageFeedbackEngageWithUsDescription}"
|
||||||
<cwc:SettingsExpander.Items>
|
Header="{shcm:ResourceString Name=ViewPageFeedbackCommonLinksHeader}"
|
||||||
<cwc:SettingsCard
|
HeaderIcon="{shcm:FontIcon Glyph=}"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
IsExpanded="True">
|
||||||
CommandParameter="https://github.com/DGP-Studio/Snap.Hutao/issues/new/choose"
|
<cwc:SettingsExpander.Items>
|
||||||
Description="{shcm:ResourceString Name=ViewPageFeedbackGithubIssuesDescription}"
|
<cwc:SettingsCard
|
||||||
Header="GitHub Issues"
|
Command="{Binding NavigateToUriCommand}"
|
||||||
IsClickEnabled="True"/>
|
CommandParameter="https://github.com/DGP-Studio/Snap.Hutao/issues/new/choose"
|
||||||
<cwc:SettingsCard
|
Description="{shcm:ResourceString Name=ViewPageFeedbackGithubIssuesDescription}"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="GitHub Issues"
|
||||||
CommandParameter="https://github.com/orgs/DGP-Studio/projects/2"
|
IsClickEnabled="True"/>
|
||||||
Description="{shcm:ResourceString Name=ViewPageFeedbackRoadmapDescription}"
|
<cwc:SettingsCard
|
||||||
Header="GitHub Projects"
|
Command="{Binding NavigateToUriCommand}"
|
||||||
IsClickEnabled="True"/>
|
CommandParameter="https://github.com/orgs/DGP-Studio/projects/2"
|
||||||
<cwc:SettingsCard
|
Description="{shcm:ResourceString Name=ViewPageFeedbackRoadmapDescription}"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="GitHub Projects"
|
||||||
CommandParameter="https://status.hut.ao"
|
IsClickEnabled="True"/>
|
||||||
Description="{shcm:ResourceString Name=ViewPageFeedbackServerStatusDescription}"
|
<cwc:SettingsCard
|
||||||
Header="{shcm:ResourceString Name=ViewPageFeedbackServerStatusHeader}"
|
Command="{Binding NavigateToUriCommand}"
|
||||||
IsClickEnabled="True"/>
|
CommandParameter="https://status.hut.ao"
|
||||||
</cwc:SettingsExpander.Items>
|
Description="{shcm:ResourceString Name=ViewPageFeedbackServerStatusDescription}"
|
||||||
</cwc:SettingsExpander>
|
Header="{shcm:ResourceString Name=ViewPageFeedbackServerStatusHeader}"
|
||||||
<cwc:SettingsExpander
|
IsClickEnabled="True"/>
|
||||||
Header="{shcm:ResourceString Name=ViewPageFeedbackFeatureGuideHeader}"
|
</cwc:SettingsExpander.Items>
|
||||||
HeaderIcon="{shcm:FontIcon Glyph=}"
|
</cwc:SettingsExpander>
|
||||||
IsExpanded="True">
|
</Border>
|
||||||
<cwc:SettingsExpander.Items>
|
<Border Style="{ThemeResource AcrylicBorderlessBorderCardStyle}">
|
||||||
<cwc:SettingsCard
|
<cwc:SettingsExpander
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
Header="{shcm:ResourceString Name=ViewPageFeedbackFeatureGuideHeader}"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
HeaderIcon="{shcm:FontIcon Glyph=}"
|
||||||
CommandParameter="https://hut.ao/features/dashboard.html"
|
IsExpanded="True">
|
||||||
Header="{shcm:ResourceString Name=ViewAnnouncementHeader}"
|
<cwc:SettingsExpander.Items>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/Announcement.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/dashboard.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewAnnouncementHeader}"
|
||||||
CommandParameter="https://hut.ao/features/game-launcher.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/Announcement.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewLaunchGameHeader}"
|
IsClickEnabled="True"/>
|
||||||
IsClickEnabled="True">
|
<cwc:SettingsCard
|
||||||
<cwc:SettingsCard.HeaderIcon>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<!-- This icon is not a square -->
|
Command="{Binding NavigateToUriCommand}"
|
||||||
<BitmapIcon
|
CommandParameter="https://hut.ao/features/game-launcher.html"
|
||||||
Width="24"
|
Header="{shcm:ResourceString Name=ViewLaunchGameHeader}"
|
||||||
Height="24"
|
IsClickEnabled="True">
|
||||||
ShowAsMonochrome="False"
|
<cwc:SettingsCard.HeaderIcon>
|
||||||
UriSource="ms-appx:///Resource/Navigation/LaunchGame.png"/>
|
<!-- This icon is not a square -->
|
||||||
</cwc:SettingsCard.HeaderIcon>
|
<BitmapIcon
|
||||||
</cwc:SettingsCard>
|
Width="24"
|
||||||
<cwc:SettingsCard
|
Height="24"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
ShowAsMonochrome="False"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
UriSource="ms-appx:///Resource/Navigation/LaunchGame.png"/>
|
||||||
CommandParameter="https://hut.ao/features/wish-export.html"
|
</cwc:SettingsCard.HeaderIcon>
|
||||||
Header="{shcm:ResourceString Name=ViewGachaLogHeader}"
|
</cwc:SettingsCard>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/GachaLog.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/wish-export.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewGachaLogHeader}"
|
||||||
CommandParameter="https://hut.ao/features/achievements.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/GachaLog.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewAchievementHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/Achievement.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/achievements.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewAchievementHeader}"
|
||||||
CommandParameter="https://hut.ao/features/real-time-notes.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/Achievement.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewDailyNoteHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/DailyNote.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/real-time-notes.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewDailyNoteHeader}"
|
||||||
CommandParameter="https://hut.ao/features/character-data.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/DailyNote.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewAvatarPropertyHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/AvatarProperty.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/character-data.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewAvatarPropertyHeader}"
|
||||||
CommandParameter="https://hut.ao/features/hutao-API.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/AvatarProperty.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewSpiralAbyssHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/SpiralAbyss.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/hutao-API.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewSpiralAbyssHeader}"
|
||||||
CommandParameter="https://hut.ao/features/develop-plan.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/SpiralAbyss.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewCultivationHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/Cultivation.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/develop-plan.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewCultivationHeader}"
|
||||||
CommandParameter="https://hut.ao/features/character-wiki.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/Cultivation.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewWikiAvatarHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/WikiAvatar.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/character-wiki.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewWikiAvatarHeader}"
|
||||||
CommandParameter="https://hut.ao/features/weapon-wiki.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/WikiAvatar.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewWikiWeaponHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/WikiWeapon.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/weapon-wiki.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewWikiWeaponHeader}"
|
||||||
CommandParameter="https://hut.ao/features/monster-wiki.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/WikiWeapon.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewWikiMonsterHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/WikiMonster.png}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
<cwc:SettingsCard
|
Command="{Binding NavigateToUriCommand}"
|
||||||
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
CommandParameter="https://hut.ao/features/monster-wiki.html"
|
||||||
Command="{Binding NavigateToUriCommand}"
|
Header="{shcm:ResourceString Name=ViewWikiMonsterHeader}"
|
||||||
CommandParameter="https://hut.ao/features/hutao-settings.html"
|
HeaderIcon="{shcm:BitmapIcon Source=ms-appx:///Resource/Navigation/WikiMonster.png}"
|
||||||
Header="{shcm:ResourceString Name=ViewSettingHeader}"
|
IsClickEnabled="True"/>
|
||||||
HeaderIcon="{shcm:FontIcon Glyph=}"
|
<cwc:SettingsCard
|
||||||
IsClickEnabled="True"/>
|
Padding="{ThemeResource SettingsExpanderItemHasIconPadding}"
|
||||||
</cwc:SettingsExpander.Items>
|
Command="{Binding NavigateToUriCommand}"
|
||||||
</cwc:SettingsExpander>
|
CommandParameter="https://hut.ao/features/hutao-settings.html"
|
||||||
|
Header="{shcm:ResourceString Name=ViewSettingHeader}"
|
||||||
|
HeaderIcon="{shcm:FontIcon Glyph=}"
|
||||||
|
IsClickEnabled="True"/>
|
||||||
|
</cwc:SettingsExpander.Items>
|
||||||
|
</cwc:SettingsExpander>
|
||||||
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</SplitView.Pane>
|
</SplitView.Pane>
|
||||||
<Grid>
|
<Grid Margin="16,16,0,16" Style="{ThemeResource AcrylicGridCardStyle}">
|
||||||
<Grid
|
<Grid
|
||||||
Padding="16,16,0,16"
|
Padding="16"
|
||||||
RowSpacing="8"
|
RowSpacing="8"
|
||||||
Visibility="{Binding IsInitialized, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
Visibility="{Binding IsInitialized, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
|||||||
@@ -356,39 +356,44 @@
|
|||||||
</Pivot>
|
</Pivot>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Visibility="{Binding GamePathSelectedAndValid, Converter={StaticResource BoolToVisibilityRevertConverter}}">
|
<Grid Visibility="{Binding GamePathSelectedAndValid, Converter={StaticResource BoolToVisibilityRevertConverter}}">
|
||||||
<StackPanel
|
<Border
|
||||||
Margin="128,0"
|
Margin="128,0"
|
||||||
HorizontalAlignment="Center"
|
Padding="16"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Spacing="3">
|
Style="{ThemeResource AcrylicBorderCardStyle}">
|
||||||
<shci:CachedImage
|
<StackPanel
|
||||||
Height="120"
|
HorizontalAlignment="Stretch"
|
||||||
MinWidth="{ThemeResource SettingsCardContentControlMinWidth}"
|
VerticalAlignment="Center"
|
||||||
EnableLazyLoading="False"
|
Spacing="3">
|
||||||
Source="{StaticResource UI_EmotionIcon445}"/>
|
<shci:CachedImage
|
||||||
<TextBlock
|
Height="120"
|
||||||
Margin="0,5,0,21"
|
MinWidth="{ThemeResource SettingsCardContentControlMinWidth}"
|
||||||
HorizontalAlignment="Center"
|
EnableLazyLoading="False"
|
||||||
Style="{StaticResource SubtitleTextBlockStyle}"
|
Source="{StaticResource UI_EmotionIcon445}"/>
|
||||||
Text="{shcm:ResourceString Name=ViewPageLaunchGameSelectGamePath}"/>
|
<TextBlock
|
||||||
<Border Style="{ThemeResource BorderCardStyle}">
|
Margin="0,5,0,21"
|
||||||
<ListView
|
HorizontalAlignment="Center"
|
||||||
ItemTemplate="{StaticResource GamePathEntryListTemplate}"
|
Style="{StaticResource SubtitleTextBlockStyle}"
|
||||||
ItemsSource="{Binding GamePathEntries}"
|
Text="{shcm:ResourceString Name=ViewPageLaunchGameSelectGamePath}"/>
|
||||||
SelectedItem="{Binding SelectedGamePathEntry, Mode=TwoWay}"/>
|
<Border Style="{ThemeResource BorderCardStyle}">
|
||||||
</Border>
|
<ListView
|
||||||
<cwc:SettingsCard
|
ItemTemplate="{StaticResource GamePathEntryListTemplate}"
|
||||||
ActionIcon="{shcm:FontIcon Glyph=}"
|
ItemsSource="{Binding GamePathEntries}"
|
||||||
ActionIconToolTip="{shcm:ResourceString Name=ViewPageSettingSetGamePathAction}"
|
SelectedItem="{Binding SelectedGamePathEntry, Mode=TwoWay}"/>
|
||||||
Command="{Binding SetGamePathCommand}"
|
</Border>
|
||||||
Header="{shcm:ResourceString Name=ViewPageSettingSetGamePathHeader}"
|
<cwc:SettingsCard
|
||||||
HeaderIcon="{shcm:FontIcon Glyph=}"
|
ActionIcon="{shcm:FontIcon Glyph=}"
|
||||||
IsClickEnabled="True">
|
ActionIconToolTip="{shcm:ResourceString Name=ViewPageSettingSetGamePathAction}"
|
||||||
<cwc:SettingsCard.Description>
|
Command="{Binding SetGamePathCommand}"
|
||||||
<TextBlock Foreground="{ThemeResource SystemErrorTextColor}" Text="{shcm:ResourceString Name=ViewPageSettingSetGamePathHint}"/>
|
Header="{shcm:ResourceString Name=ViewPageSettingSetGamePathHeader}"
|
||||||
</cwc:SettingsCard.Description>
|
HeaderIcon="{shcm:FontIcon Glyph=}"
|
||||||
</cwc:SettingsCard>
|
IsClickEnabled="True">
|
||||||
</StackPanel>
|
<cwc:SettingsCard.Description>
|
||||||
|
<TextBlock Foreground="{ThemeResource SystemErrorTextColor}" Text="{shcm:ResourceString Name=ViewPageSettingSetGamePathHint}"/>
|
||||||
|
</cwc:SettingsCard.Description>
|
||||||
|
</cwc:SettingsCard>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</shc:ScopedPage>
|
</shc:ScopedPage>
|
||||||
@@ -322,7 +322,7 @@
|
|||||||
Spacing="16">
|
Spacing="16">
|
||||||
<!-- 简介 -->
|
<!-- 简介 -->
|
||||||
<Border cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
<Border cw:Effects.Shadow="{ThemeResource CompatCardShadow}">
|
||||||
<Grid Background="{ThemeResource SystemControlAcrylicElementMediumHighBrush}" Style="{ThemeResource GridCardStyle}">
|
<Grid Style="{ThemeResource AcrylicGridCardStyle}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
Reference in New Issue
Block a user