2024-07-14 11:24:10 +00:00
|
|
|
<Page
|
|
|
|
x:Class="RustTools.Views.SettingsPage"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:helpers="using:RustTools.Helpers"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:xaml="using:Microsoft.UI.Xaml"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
|
|
|
<helpers:EnumToBooleanConverter x:Key="EnumToBooleanConverter" />
|
|
|
|
</Page.Resources>
|
2024-07-28 13:33:21 +00:00
|
|
|
<ScrollView HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
|
|
|
|
<Grid>
|
|
|
|
<StackPanel x:Name="ContentArea">
|
|
|
|
<TextBlock x:Uid="Settings_Personalization" Style="{ThemeResource SubtitleTextBlockStyle}" />
|
|
|
|
<StackPanel Margin="{StaticResource SmallTopBottomMargin}">
|
|
|
|
<TextBlock x:Uid="Settings_Theme" />
|
2024-07-14 11:24:10 +00:00
|
|
|
|
2024-07-28 13:33:21 +00:00
|
|
|
<StackPanel Margin="{StaticResource XSmallTopMargin}" Orientation="Horizontal">
|
|
|
|
<RadioButton
|
|
|
|
x:Uid="Settings_Theme_Light"
|
|
|
|
Command="{x:Bind ViewModel.SwitchThemeCommand}"
|
|
|
|
FontSize="15"
|
|
|
|
GroupName="AppTheme"
|
|
|
|
IsChecked="{x:Bind ViewModel.ElementTheme, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Light, Mode=OneWay}">
|
|
|
|
<RadioButton.CommandParameter>
|
|
|
|
<xaml:ElementTheme>Light</xaml:ElementTheme>
|
|
|
|
</RadioButton.CommandParameter>
|
|
|
|
</RadioButton>
|
|
|
|
<RadioButton
|
|
|
|
x:Uid="Settings_Theme_Dark"
|
|
|
|
Command="{x:Bind ViewModel.SwitchThemeCommand}"
|
|
|
|
FontSize="15"
|
|
|
|
GroupName="AppTheme"
|
|
|
|
IsChecked="{x:Bind ViewModel.ElementTheme, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Dark, Mode=OneWay}">
|
|
|
|
<RadioButton.CommandParameter>
|
|
|
|
<xaml:ElementTheme>Dark</xaml:ElementTheme>
|
|
|
|
</RadioButton.CommandParameter>
|
|
|
|
</RadioButton>
|
|
|
|
<RadioButton
|
|
|
|
x:Uid="Settings_Theme_Default"
|
|
|
|
Command="{x:Bind ViewModel.SwitchThemeCommand}"
|
|
|
|
FontSize="15"
|
|
|
|
GroupName="AppTheme"
|
|
|
|
IsChecked="{x:Bind ViewModel.ElementTheme, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Default, Mode=OneWay}">
|
|
|
|
<RadioButton.CommandParameter>
|
|
|
|
<xaml:ElementTheme>Default</xaml:ElementTheme>
|
|
|
|
</RadioButton.CommandParameter>
|
|
|
|
</RadioButton>
|
|
|
|
</StackPanel>
|
|
|
|
<RadioButtons
|
|
|
|
x:Name="BackgroundRadioButtons"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
Header="窗口背景材质"
|
|
|
|
MaxColumns="4">
|
|
|
|
<x:String>None</x:String>
|
|
|
|
<x:String>Blur</x:String>
|
|
|
|
<x:String>AcrylicBlur</x:String>
|
|
|
|
<x:String>Mica</x:String>
|
|
|
|
</RadioButtons>
|
2024-07-14 11:24:10 +00:00
|
|
|
|
2024-07-28 13:33:21 +00:00
|
|
|
</StackPanel>
|
2024-07-14 11:24:10 +00:00
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2024-07-28 13:33:21 +00:00
|
|
|
Style="{ThemeResource SubtitleTextBlockStyle}"
|
|
|
|
Text="基础配只因" />
|
|
|
|
<StackPanel Margin="{StaticResource SmallTopBottomMargin}">
|
|
|
|
<TextBlock Text="模组路径" />
|
2024-07-14 11:24:10 +00:00
|
|
|
|
2024-07-28 13:33:21 +00:00
|
|
|
<AutoSuggestBox
|
2024-08-01 14:28:39 +00:00
|
|
|
Name="ModFileUrlText"
|
2024-07-28 13:33:21 +00:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
LostFocus="ModFileUrlText_LostFocus"
|
2024-08-01 14:28:39 +00:00
|
|
|
PlaceholderText="输入或者搜索路径(取消焦点保存)"
|
2024-07-28 13:33:21 +00:00
|
|
|
QueryIcon="Find"
|
2024-08-01 14:28:39 +00:00
|
|
|
QuerySubmitted="AutoSuggestBox_Url" />
|
|
|
|
<TextBlock Margin="0,9,0,0" Text="地图路径" />
|
|
|
|
|
|
|
|
<AutoSuggestBox
|
|
|
|
Name="MapsFileUrlText"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
LostFocus="ModFileUrlText_LostFocus"
|
|
|
|
PlaceholderText="输入或者搜索路径(取消焦点保存)"
|
|
|
|
QueryIcon="Find"
|
|
|
|
QuerySubmitted="AutoSuggestBox_Url" />
|
2024-07-28 13:33:21 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<TextBlock x:Uid="Settings_About" Style="{ThemeResource SubtitleTextBlockStyle}" />
|
|
|
|
|
|
|
|
<StackPanel Margin="{StaticResource XSmallTopMargin}">
|
|
|
|
<TextBlock Style="{ThemeResource BodyTextBlockStyle}" Text="{x:Bind ViewModel.VersionDescription, Mode=OneWay}" />
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
x:Uid="Settings_AboutDescription"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
Style="{ThemeResource BodyTextBlockStyle}" />
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<HyperlinkButton
|
2024-08-24 11:50:04 +00:00
|
|
|
Margin="{StaticResource SettingsPageHyperlinkButtonMargin}"
|
2024-07-28 13:33:21 +00:00
|
|
|
Content="开源地址"
|
|
|
|
NavigateUri="https://git.coldmint.top/muqing" />
|
|
|
|
<HyperlinkButton x:Uid="SettingsPage_PrivacyTermsLink" Margin="{StaticResource SettingsPageHyperlinkButtonMargin}" />
|
2024-08-24 11:50:04 +00:00
|
|
|
<HyperlinkButton
|
|
|
|
Margin="{StaticResource SettingsPageHyperlinkButtonMargin}"
|
|
|
|
Content="创建快捷方式"
|
|
|
|
NavigateUri="https://blog.csdn.net/Tisfy/article/details/132254567" />
|
2024-07-28 13:33:21 +00:00
|
|
|
</StackPanel>
|
2024-07-14 11:24:10 +00:00
|
|
|
</StackPanel>
|
2024-08-22 23:59:16 +00:00
|
|
|
|
|
|
|
<TextBlock Style="{ThemeResource SubtitleTextBlockStyle}" Text="特别鸣谢" />
|
|
|
|
<StackPanel Margin="{StaticResource XSmallTopMargin}" Orientation="Horizontal">
|
|
|
|
<PersonPicture
|
|
|
|
Width="56"
|
|
|
|
Height="56"
|
|
|
|
Margin="6"
|
|
|
|
ProfilePicture="http://q.qlogo.cn/headimg_dl?dst_uin=2923268971&spec=640&img_type=jpg"
|
|
|
|
ToolTipService.ToolTip="感谢薄荷对本软件后端的帮助,也希望薄荷能尽快出来官方的电脑版" />
|
|
|
|
</StackPanel>
|
2024-07-14 11:24:10 +00:00
|
|
|
</StackPanel>
|
2024-07-28 13:33:21 +00:00
|
|
|
</Grid>
|
|
|
|
</ScrollView>
|
2024-07-14 11:24:10 +00:00
|
|
|
</Page>
|