From 771a0e7b6b1276087515bbe94de28358cb92963b Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 04 六月 2026 10:32:27 +0800
Subject: [PATCH] 优化老化;

---
 HMI.UI/Style/WindowResources.xaml |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/HMI.UI/Style/WindowResources.xaml b/HMI.UI/Style/WindowResources.xaml
index 2cf9e7a..bd5f6c2 100644
--- a/HMI.UI/Style/WindowResources.xaml
+++ b/HMI.UI/Style/WindowResources.xaml
@@ -1,15 +1,15 @@
 锘�<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ui="clr-namespace:HMI.UI"
+                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                     >
     <ResourceDictionary.MergedDictionaries>
-        <ResourceDictionary Source="/HMI.UI;component/Style/Colors.xaml"/>
         <ResourceDictionary Source="/HMI.UI;component/Resources/Font/Font.xaml"/>
     </ResourceDictionary.MergedDictionaries>
 
     <Style x:Key="WindowButton" TargetType="Button">
-        <Setter Property="Background" Value="{StaticResource PrimaryColor}"/>
-        <Setter Property="ui:DpPlugin.HoverColor" Value="{StaticResource SecondPrimaryColor}"/>
+        <Setter Property="Background" Value="{DynamicResource PrimaryColor}"/>
+        <Setter Property="ui:DpPlugin.HoverColor" Value="{DynamicResource SecondPrimaryColor}"/>
         <Setter Property="FontFamily" Value="{StaticResource iconfont}"/>
         <Setter Property="FontWeight" Value="SemiBold"/>
         <Setter Property="Foreground" Value="White"/>
@@ -49,8 +49,8 @@
     <Style x:Key="ChildWindowButton" BasedOn="{StaticResource WindowButton}" TargetType="Button">
         <Setter Property="FontSize" Value="15"/>
         <Setter Property="Width" Value="30"/>
-        <Setter Property="Background" Value="{StaticResource SecondPrimaryColor}"/>
-        <Setter Property="ui:DpPlugin.HoverColor" Value="{StaticResource PrimaryColor}"/>
+        <Setter Property="Background" Value="{DynamicResource SecondPrimaryColor}"/>
+        <Setter Property="ui:DpPlugin.HoverColor" Value="{DynamicResource PrimaryColor}"/>
     </Style>
 
     <Style x:Key="ChildWindowCloseButton" BasedOn="{StaticResource ChildWindowButton}" TargetType="Button">
@@ -58,9 +58,9 @@
     </Style>
 
     <Style x:Key="LinkButton" TargetType="Button">
-        <Setter Property="ui:DpPlugin.HoverColor" Value="{StaticResource SecondPrimaryColor}"/>
+        <Setter Property="ui:DpPlugin.HoverColor" Value="{DynamicResource SecondPrimaryColor}"/>
         <Setter Property="FontFamily" Value="{StaticResource iconfont}"/>
-        <Setter Property="Foreground" Value="{StaticResource SecondPrimaryColor}"/>
+        <Setter Property="Foreground" Value="{DynamicResource SecondPrimaryColor}"/>
 
         <Setter Property="Template">
             <Setter.Value>

--
Gitblit v1.9.1