From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化
---
HMI.LogViewer/LogViewer.xaml | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/HMI.LogViewer/LogViewer.xaml b/HMI.LogViewer/LogViewer.xaml
index 04ac8c1..684a64e 100644
--- a/HMI.LogViewer/LogViewer.xaml
+++ b/HMI.LogViewer/LogViewer.xaml
@@ -11,7 +11,7 @@
xmlns:pu="https://opensource.panuon.com/wpf-ui"
xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
Loaded="UserControl_Loaded"
- Background="{StaticResource WorkspaceBackground}"
+ Background="{DynamicResource WorkspaceBackground}"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
@@ -73,8 +73,8 @@
x:Name="queryBtn" Click="Button_Click"/>
<Button Style="{StaticResource RfhBtn}"
x:Name="resetBtn" Click="Button_Click"/>
- <Button x:Name="exportBtn"
- Style="{StaticResource ExportBtn}" Click="Button_Click"/>
+ <!--<Button x:Name="exportBtn"
+ Style="{StaticResource ExportBtn}" Click="Button_Click"/>-->
</StackPanel>
<StackPanel Style="{StaticResource ButtonGroup}" HorizontalAlignment="Left">
@@ -110,10 +110,10 @@
<Setter Property="Height" Value="{StaticResource nanD}" />
<Style.Triggers>
<DataTrigger Binding="{Binding level}" Value="Warn">
- <Setter Property="Foreground" Value="{StaticResource WarningColor}"/>
+ <Setter Property="Foreground" Value="{DynamicResource WarningColor}"/>
</DataTrigger>
<DataTrigger Binding="{Binding level}" Value="Error">
- <Setter Property="Foreground" Value="{StaticResource DangerColor}"/>
+ <Setter Property="Foreground" Value="{DynamicResource DangerColor}"/>
</DataTrigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="Transparent"/>
@@ -201,11 +201,11 @@
<Style TargetType="DataGridRow" BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridRowStyle}}">
<Style.Triggers>
<DataTrigger Binding="{Binding level}" Value="Warn">
- <Setter Property="Background" Value="{StaticResource WarningColor}"/>
+ <Setter Property="Background" Value="{DynamicResource WarningColor}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
<DataTrigger Binding="{Binding level}" Value="Error">
- <Setter Property="Background" Value="{StaticResource DangerColor}"/>
+ <Setter Property="Background" Value="{DynamicResource DangerColor}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
<Trigger Property="IsSelected" Value="True">
@@ -277,11 +277,11 @@
<Style TargetType="ListViewItem" BasedOn="{StaticResource {x:Static pu:StyleKeys.ListViewItemStyle}}">
<Style.Triggers>
<DataTrigger Binding="{Binding level}" Value="Warn">
- <Setter Property="Background" Value="{StaticResource WarningColor}"/>
+ <Setter Property="Background" Value="{DynamicResource WarningColor}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
<DataTrigger Binding="{Binding level}" Value="Error">
- <Setter Property="Background" Value="{StaticResource DangerColor}"/>
+ <Setter Property="Background" Value="{DynamicResource DangerColor}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
<Trigger Property="IsSelected" Value="True">
--
Gitblit v1.9.1