hotfix: 修复 BAML 反序列化运行时错误 (v2.0.2)

问题: 启动时报 System.Windows.Baml2006.DeferredBinaryDeserializerExtension 异常
根因: ResourceDictionary 中使用了不合法的共享资源类型

修复:
- 移除主题中 DropShadowEffect/CubicEase/QuadraticEase/Duration 共享资源
- 将所有 Effect 和 EasingFunction 改为内联声明
- 修复 DynamicResource 引用
This commit is contained in:
miao-moe
2026-06-28 07:55:33 +00:00
parent bb0c8832a0
commit f219b63faf
15 changed files with 178 additions and 198 deletions

View File

@@ -67,12 +67,6 @@
<!-- 窗口按钮按下画刷 -->
<SolidColorBrush x:Key="WindowButtonPressedBrush" Color="#3A3A5A" />
<!-- ===== 动画参数 ===== -->
<!-- 标准动画时长(毫秒) -->
<Duration x:Key="AnimationDuration">0:0:0.300</Duration>
<!-- 快速动画时长(毫秒) -->
<Duration x:Key="FastAnimationDuration">0:0:0.200</Duration>
<!-- ===== 圆角参数 ===== -->
<!-- 标准圆角半径 -->
<CornerRadius x:Key="StandardCornerRadius">8</CornerRadius>
@@ -88,32 +82,5 @@
<System:Double x:Key="FontSizeLarge">20</System:Double>
<System:Double x:Key="FontSizeTitle">28</System:Double>
<!-- ===== 阴影效果 ===== -->
<!-- 卡片阴影柔和投影Fluent Design风格 -->
<DropShadowEffect x:Key="CardShadow"
ShadowDepth="2"
BlurRadius="12"
Opacity="0.4"
Color="#000000" />
<!-- 窗口阴影:深层阴影 -->
<DropShadowEffect x:Key="WindowShadow"
ShadowDepth="4"
BlurRadius="20"
Opacity="0.6"
Color="#000000" />
<!-- 导航栏阴影:微妙侧边阴影 -->
<DropShadowEffect x:Key="NavBarShadow"
ShadowDepth="2"
BlurRadius="8"
Opacity="0.3"
Color="#000000" />
<!-- ===== 缓动函数 ===== -->
<!-- 标准缓入缓出 -->
<CubicEase x:Key="StandardCubicEase" EasingMode="EaseInOut" />
<!-- 缓出效果 -->
<CubicEase x:Key="EaseOutCubicEase" EasingMode="EaseOut" />
<!-- 缓入效果 -->
<CubicEase x:Key="EaseInCubicEase" EasingMode="EaseIn" />
</ResourceDictionary>