mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-06-02 10:55:48 +08:00
feat: 为多个窗口启用自动翻译拦截器
为 MapLabelSearchWindow、ArtifactOcrDialog、PromptDialog 等十三个 WPF 窗口添加了 AutoTranslateInterceptor 行为,以启用自动翻译功能。这确保了应用程序界面的文本内容在需要时可以被正确拦截并处理,提升国际化支持。
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||
xmlns:vio="http://schemas.lepo.co/wpfui/2022/xaml/violeta"
|
||||
xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
|
||||
Title="脚本仓库"
|
||||
Width="410"
|
||||
MinWidth="360"
|
||||
@@ -13,6 +14,7 @@
|
||||
ResizeMode="NoResize"
|
||||
Background="#202020"
|
||||
ExtendsContentIntoTitleBar="True"
|
||||
behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
|
||||
FontFamily="{DynamicResource TextThemeFontFamily}"
|
||||
SizeToContent="Height"
|
||||
WindowBackdropType="Auto"
|
||||
@@ -320,4 +322,4 @@
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ui:FluentWindow>
|
||||
</ui:FluentWindow>
|
||||
|
||||
Reference in New Issue
Block a user