hotfix: 修复 BAML 反序列化运行时错误 (v2.0.2)
问题: 启动时报 System.Windows.Baml2006.DeferredBinaryDeserializerExtension 异常 根因: ResourceDictionary 中使用了不合法的共享资源类型 修复: - 移除主题中 DropShadowEffect/CubicEase/QuadraticEase/Duration 共享资源 - 将所有 Effect 和 EasingFunction 改为内联声明 - 修复 DynamicResource 引用
This commit is contained in:
@@ -67,12 +67,6 @@
|
||||
<!-- 窗口按钮按下画刷 -->
|
||||
<SolidColorBrush x:Key="WindowButtonPressedBrush" Color="#D0D0D8" />
|
||||
|
||||
<!-- ===== 动画参数 ===== -->
|
||||
<!-- 标准动画时长(毫秒) -->
|
||||
<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.15"
|
||||
Color="#000000" />
|
||||
<!-- 窗口阴影:深层阴影 -->
|
||||
<DropShadowEffect x:Key="WindowShadow"
|
||||
ShadowDepth="4"
|
||||
BlurRadius="20"
|
||||
Opacity="0.25"
|
||||
Color="#000000" />
|
||||
<!-- 导航栏阴影:微妙侧边阴影 -->
|
||||
<DropShadowEffect x:Key="NavBarShadow"
|
||||
ShadowDepth="1"
|
||||
BlurRadius="6"
|
||||
Opacity="0.1"
|
||||
Color="#000000" />
|
||||
|
||||
<!-- ===== 缓动函数 ===== -->
|
||||
<!-- 标准缓入缓出 -->
|
||||
<CubicEase x:Key="StandardCubicEase" EasingMode="EaseInOut" />
|
||||
<!-- 缓出效果 -->
|
||||
<CubicEase x:Key="EaseOutCubicEase" EasingMode="EaseOut" />
|
||||
<!-- 缓入效果 -->
|
||||
<CubicEase x:Key="EaseInCubicEase" EasingMode="EaseIn" />
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
Reference in New Issue
Block a user