Skip to content

Commit db30652

Browse files
committed
✨ 统一关闭 UI 动画并优化 XAML 属性顺序
本次提交主要做了以下改动: - 全面将各页面 Border 控件的 spp:Animations.EnableAnimations 属性由 True 改为 False,关闭 UI 动画效果,提升性能与兼容性。 - 优化 HomePage.axaml 及相关 XAML 文件的属性顺序,提升代码可读性和一致性。 - 调整 HomePage.axaml 中 NavButtonStyle 等资源定义顺序,增强可维护性。 - ProxyService.Operate.cs 中,异常隐式转换现在会将 Exception.Message 作为 Error 字段,便于错误信息展示。 - 更新了 DirectoryPackages 和 SteamClient 子模块状态为 dirty,提示有本地未提交更改。 - 本次变更未涉及核心业务逻辑,仅为 UI 表现和异常信息优化。
1 parent cb00861 commit db30652

File tree

9 files changed

+84
-84
lines changed

9 files changed

+84
-84
lines changed

src/BD.WTTS.Client.Avalonia/UI/Views/Pages/HomePage.axaml

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

src/BD.WTTS.Client.Avalonia/UI/Views/Pages/PluginStorePage.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</ItemsControl.ItemsPanel>
5454
<ItemsControl.ItemTemplate>
5555
<DataTemplate DataType="spp:TabItemViewModel">
56-
<Border spp:Animations.EnableAnimations="True">
56+
<Border spp:Animations.EnableAnimations="False">
5757
<Button
5858
Command="{Binding $parent[spp:PluginStorePage].((spp:PluginStorePageViewModel)DataContext).NavgationToMenuPageCommand}"
5959
CommandParameter="{Binding}"

src/BD.WTTS.Client.Plugins.Accelerator/Services/Mvvm/ProxyService.Operate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ readonly record struct OperateProxyServiceResult(string? Error, Exception? Excep
436436
{
437437
public static implicit operator OperateProxyServiceResult(string error) => new(error);
438438

439-
public static implicit operator OperateProxyServiceResult(Exception exception) => new(null, exception);
439+
public static implicit operator OperateProxyServiceResult(Exception exception) => new(exception.Message, exception);
440440

441441
/// <summary>
442442
/// 将返回结果使用 Toast 显示并且返回当前应设置的代理状态

src/BD.WTTS.Client.Plugins.Accelerator/UI/Views/Pages/ScriptStorePage.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</ItemsRepeater.Layout>
3232
<ItemsRepeater.ItemTemplate>
3333
<DataTemplate DataType="spp:ScriptDTO">
34-
<Border spp:Animations.EnableAnimations="True">
34+
<Border spp:Animations.EnableAnimations="False">
3535
<spp:AppItem
3636
Title="{Binding Name}"
3737
MaxWidth="135"

src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Controls/AuthenticatorImportMethodSelect.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Border
2222
Width="200"
2323
Margin="3"
24-
spp:Animations.EnableAnimations="True">
24+
spp:Animations.EnableAnimations="False">
2525
<spp:AppItem
2626
Title="{Binding Name}"
2727
Classes="Vertical"

src/BD.WTTS.Client.Plugins.GameAccount/UI/Views/Controls/AccountItems.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
</ItemsControl.ItemsPanel>
212212
<ItemsControl.ItemTemplate>
213213
<DataTemplate DataType="spp:IAccount">
214-
<Border Margin="5" spp:Animations.EnableAnimations="True">
214+
<Border Margin="5" spp:Animations.EnableAnimations="False">
215215
<spp:AppItem
216216
x:Name="Item"
217217
Title="{Binding DisplayName}"

src/BD.WTTS.Client.Plugins.GameList/UI/Views/Pages/EditAppsPage.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
</ItemsControl.ItemsPanel>
109109
<ItemsControl.ItemTemplate>
110110
<DataTemplate DataType="spp:SteamApp">
111-
<Border Margin="5" spp:Animations.EnableAnimations="True">
111+
<Border Margin="5" spp:Animations.EnableAnimations="False">
112112
<spp:AppItem
113113
Title="{Binding DisplayName}"
114114
Height="270"

src/BD.WTTS.Client.Plugins.GameList/UI/Views/Pages/IdleAppsPage.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
</ItemsControl.ItemsPanel>
140140
<ItemsControl.ItemTemplate>
141141
<DataTemplate DataType="spp:SteamApp">
142-
<Border Margin="5" spp:Animations.EnableAnimations="True">
142+
<Border Margin="5" spp:Animations.EnableAnimations="False">
143143
<spp:AppItem
144144
Title="{Binding DisplayName}"
145145
Height="270"

src/BD.WTTS.Client.Plugins.GameTools/UI/Views/GameToolsPage.axaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</ControlTheme>
101101
</ScrollViewer.Resources>
102102
<WrapPanel>
103-
<Border spp:Animations.EnableAnimations="True">
103+
<Border spp:Animations.EnableAnimations="False">
104104
<Button
105105
Click="GameToolsPage_Click"
106106
IsEnabled="{spp:OnPlatform Windows}"
@@ -130,7 +130,7 @@
130130
</Button>
131131
</Border>
132132

133-
<Border spp:Animations.EnableAnimations="True">
133+
<Border spp:Animations.EnableAnimations="False">
134134
<Button
135135
Click="GameToolsPage_Click"
136136
IsEnabled="{spp:OnPlatform Windows}"
@@ -160,7 +160,7 @@
160160
</Button>
161161
</Border>
162162

163-
<Border spp:Animations.EnableAnimations="True">
163+
<Border spp:Animations.EnableAnimations="False">
164164
<Button
165165
Click="GameToolsPage_Click"
166166
IsEnabled="{spp:OnPlatform Windows}"

0 commit comments

Comments
 (0)