Files
better-genshin-impact/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml
辉鸭蛋 fc942bd8cd feat: 为多个窗口启用自动翻译拦截器
为 MapLabelSearchWindow、ArtifactOcrDialog、PromptDialog 等十三个 WPF 窗口添加了 AutoTranslateInterceptor 行为,以启用自动翻译功能。这确保了应用程序界面的文本内容在需要时可以被正确拦截并处理,提升国际化支持。
2026-01-28 01:22:09 +08:00

77 lines
3.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<ui:FluentWindow x:Class="BetterGenshinImpact.View.Windows.WelcomeDialog"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="500"
Height="210"
MinWidth="400"
MinHeight="230"
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
ResizeMode="CanMinimize"
WindowBackdropType="Mica"
WindowStartupLocation="CenterScreen"
WindowStyle="SingleBorderWindow"
xmlns:emoji="clr-namespace:Emoji.Wpf;assembly=Emoji.Wpf"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Margin="12">
<emoji:TextBlock Text="🔹 本软件开源且免费喜欢的可以点🌟Star -> " Margin="5" FontSize="16">
<Hyperlink NavigateUri="https://github.com/babalae/better-genshin-impact"
RequestNavigate="HyperlinkRequestNavigate" Foreground="#1E9BFA">
Github
</Hyperlink>
</emoji:TextBlock>
<emoji:TextBlock Text="🔹 首次使用请先查看" Margin="5" FontSize="16">
<Hyperlink NavigateUri="https://bettergi.com/quickstart.html"
RequestNavigate="HyperlinkRequestNavigate" Foreground="#1E9BFA">
《快速上手教程》
</Hyperlink>
</emoji:TextBlock>
<emoji:TextBlock
Margin="5"
FontSize="16"
TextWrapping="Wrap">
<Run Text="❗本软件从未授权任何第三方平台进行" /><Run Text="售卖" Foreground="Red" />
<Run Text="。如果你是付费获取的本软件(闲鱼、淘宝等),请举报商家并发起" /><Run Text="退款" Foreground="Red" /><Run Text="" />
</emoji:TextBlock>
<!--<StackPanel Margin="5"
Orientation="Horizontal">
<ui:TextBlock Text="本软件" VerticalAlignment="Bottom"/>
<emoji:TextBlock Text="🔄开源" FontSize="20" />
<ui:TextBlock Text="且" VerticalAlignment="Bottom"/>
<emoji:TextBlock Text="🆓免费" FontSize="20"/>
</StackPanel>-->
<StackPanel Margin="5"
HorizontalAlignment="Right"
Orientation="Horizontal">
<ui:Button Name="BtnOk"
Margin="5"
Appearance="Primary"
Click="BtnOkClick"
Content="确定"
IsDefault="True" />
</StackPanel>
</StackPanel>
<ui:TitleBar Title="BetterGI" Grid.Row="0">
<ui:TitleBar.Icon>
<ui:ImageIcon Source="pack://application:,,,/Resources/Images/logo.png" />
</ui:TitleBar.Icon>
</ui:TitleBar>
</Grid>
</ui:FluentWindow>