|
1 | 1 | <Page |
| 2 | + NavigationCacheMode="Required" |
| 3 | + mc:Ignorable="d" |
2 | 4 | x:Class="ShadowViewer.Pages.SettingsPage" |
3 | 5 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 6 | xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors" |
6 | 7 | xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
7 | 8 | xmlns:converters="using:CommunityToolkit.WinUI.Converters" |
|
15 | 16 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
16 | 17 | xmlns:shadowConverters="using:ShadowViewer.Converters" |
17 | 18 | xmlns:ui="using:CommunityToolkit.WinUI" |
18 | | - NavigationCacheMode="Required" |
19 | | - mc:Ignorable="d"> |
| 19 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
20 | 20 | <Page.Resources> |
21 | 21 | <x:Double x:Key="SettingIconWidth">30</x:Double> |
22 | 22 | <x:Double x:Key="SettingIconHeight">30</x:Double> |
|
27 | 27 | <shadowConverters:ThemeComboConverter x:Key="ThemeComboConverter" /> |
28 | 28 | </Page.Resources> |
29 | 29 |
|
30 | | - <Grid |
31 | | - Background="{ThemeResource LayerFillColorDefaultBrush}" |
32 | | - BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
33 | | - BorderThickness="1" |
34 | | - CornerRadius="{ThemeResource NavigationViewContentGridCornerRadius}" |
35 | | - RowSpacing="5"> |
| 30 | + <Grid Style="{ThemeResource ShadowRootGridStyle}"> |
36 | 31 | <Grid.RowDefinitions> |
37 | 32 | <RowDefinition Height="Auto" /> |
38 | 33 | <RowDefinition Height="*" /> |
39 | 34 | </Grid.RowDefinitions> |
40 | 35 | <TextBlock |
| 36 | + FontSize="{ThemeResource ShadowRootTextFontSize}" |
41 | 37 | Grid.Row="0" |
42 | | - Margin="20,10,0,0" |
43 | | - FontSize="25" |
| 38 | + Margin="{ThemeResource ShadowSettingRootTextMargin}" |
44 | 39 | Text="{i18N:Locale Key=Settings}" /> |
45 | | - <ScrollViewer Grid.Row="1" Padding="20,5"> |
| 40 | + <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Hidden"> |
46 | 41 | <StackPanel HorizontalAlignment="Stretch" Spacing="{StaticResource SettingsCardSpacing}"> |
47 | 42 | <TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" Text="{i18N:Locale Key=MainSetting}" /> |
48 | 43 | <controls:SettingsCard |
|
102 | 97 | IsExpanded="True"> |
103 | 98 | <StackPanel |
104 | 99 | Height="32" |
105 | | - VerticalAlignment="Stretch" |
106 | 100 | Orientation="Horizontal" |
107 | | - Spacing="4"> |
| 101 | + Spacing="4" |
| 102 | + VerticalAlignment="Stretch"> |
108 | 103 | <TextBlock |
109 | | - VerticalAlignment="Bottom" |
110 | 104 | FontSize="18" |
111 | 105 | Style="{StaticResource CaptionTextBlockStyle}" |
112 | | - Text="{x:Bind ViewModel.Version}" /> |
| 106 | + Text="{x:Bind ViewModel.Version}" |
| 107 | + VerticalAlignment="Bottom" /> |
113 | 108 | <Button |
114 | | - Height="20" |
115 | | - Padding="6,2" |
116 | | - VerticalAlignment="Top" |
117 | 109 | Background="#f79800" |
118 | 110 | CornerRadius="8" |
119 | 111 | Foreground="White" |
| 112 | + Height="20" |
| 113 | + Padding="6,2" |
120 | 114 | Style="{ThemeResource NoOverButton}" |
| 115 | + VerticalAlignment="Top" |
121 | 116 | Visibility="{x:Bind ViewModel.Preview, Mode=OneWay, Converter={StaticResource StringVisibilityConverter}}"> |
122 | 117 | <TextBlock FontSize="10" Text="{x:Bind ViewModel.Preview}" /> |
123 | 118 | </Button> |
|
131 | 126 | Header="{i18N:Locale Key=BugRequest}" |
132 | 127 | IsClickEnabled="True" /> |
133 | 128 | <controls:SettingsCard |
134 | | - ActionIcon="{ui:FontIcon Glyph=}" |
135 | | - Command="{x:Bind ViewModel.NavigateToUriCommand}" |
136 | | - CommandParameter="https://ifdian.net/a/kituin" |
137 | | - Header="{i18N:Locale Key=Sponsor}" |
138 | | - IsClickEnabled="True" /> |
139 | | - <controls:SettingsCard |
140 | | - HorizontalContentAlignment="Left" |
141 | 129 | ContentAlignment="Vertical" |
142 | | - Header="{i18N:Locale Key=Dependencies}"> |
| 130 | + Header="{i18N:Locale Key=Dependencies}" |
| 131 | + HorizontalContentAlignment="Left"> |
143 | 132 | <StackPanel Orientation="Vertical"> |
144 | 133 | <HyperlinkButton Content="📦Windows App SDK" NavigateUri="https://github.com/microsoft/WindowsAppSDK" /> |
145 | | - <HyperlinkButton Content="🔣FluentIcon" NavigateUri="https://github.com/davidxuang/FluentIcons" /> |
146 | 134 | <HyperlinkButton Content="⛓️💥ShadowPluginLoader" NavigateUri="https://github.com/KitUIN/ShadowPluginLoader" /> |
| 135 | + <HyperlinkButton Content="🔣FluentIcon" NavigateUri="https://github.com/davidxuang/FluentIcons" /> |
147 | 136 | <HyperlinkButton Content="📦Windows Community Toolkit" NavigateUri="https://github.com/CommunityToolkit/dotnet" /> |
148 | 137 | <HyperlinkButton Content="🧪Windows Community Toolkit Labs" NavigateUri="https://github.com/CommunityToolkit/Labs-Windows" /> |
149 | 138 | <HyperlinkButton Content="📦SharpCompress" NavigateUri="https://github.com/adamhathcock/sharpcompress" /> |
150 | 139 | <HyperlinkButton Content="📃Serilog" NavigateUri="https://serilog.net" /> |
151 | 140 | <HyperlinkButton Content="📦SQLSugarCore" NavigateUri="https://github.com/DotNetNext/SqlSugar" /> |
152 | 141 | <HyperlinkButton Content="📦DryIoc" NavigateUri="https://github.com/dadhi/DryIoc" /> |
153 | | - <HyperlinkButton Content="🔩CustomExtensions.WinUI" NavigateUri="https://github.com/dnchattan/winui-extensions" /> |
| 142 | + <HyperlinkButton Content="🔩CustomExtensions.WinUI[Fork]" NavigateUri="https://github.com/kitUIN/CustomExtensions.WinUI" /> |
154 | 143 | <HyperlinkButton Content="📂WinUI Gallery" NavigateUri="https://github.com/microsoft/WinUI-Gallery" /> |
155 | 144 | <HyperlinkButton Content="📂Bili.Uwp" NavigateUri="https://github.com/Richasy/Bili.Uwp" /> |
156 | 145 | <HyperlinkButton Content="📂Windows Community Toolkit Labs[TitleBar]" NavigateUri="https://github.com/CommunityToolkit/Labs-Windows/discussions/454" /> |
|
0 commit comments