From e3868d4d61ded0e76fc8fe3fdacdd9e6d9113cf1 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 13 十月 2025 08:50:15 +0800
Subject: [PATCH] 优化HMI;
---
HMI.UI/Style/MsgBoxStyle.xaml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/HMI.UI/Style/MsgBoxStyle.xaml b/HMI.UI/Style/MsgBoxStyle.xaml
index a29c393..984e2cc 100644
--- a/HMI.UI/Style/MsgBoxStyle.xaml
+++ b/HMI.UI/Style/MsgBoxStyle.xaml
@@ -13,6 +13,7 @@
<Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource WarningColorContract}" />
<Setter Property="Width" Value="350" />
<Setter Property="Height" Value="200" />
+ <Setter Property="SizeToContent" Value="Manual" />
</Style>
</pu:MessageBoxXSettings.WindowXStyle>
@@ -51,6 +52,7 @@
<Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource DangerColorContrast}" />
<Setter Property="Width" Value="350" />
<Setter Property="Height" Value="200" />
+ <Setter Property="SizeToContent" Value="Manual" />
</Style>
</pu:MessageBoxXSettings.WindowXStyle>
@@ -89,6 +91,7 @@
<Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource PrimaryColorContract}" />
<Setter Property="Width" Value="350" />
<Setter Property="Height" Value="200" />
+ <Setter Property="SizeToContent" Value="Manual" />
</Style>
</pu:MessageBoxXSettings.WindowXStyle>
@@ -121,6 +124,7 @@
<pu:ToastSetting x:Key="toastSuccess" Spacing="25">
<pu:ToastSetting.LabelStyle>
<Style TargetType="Label" BasedOn="{StaticResource {x:Static pu:Toast.LabelStyleKey}}">
+ <Setter Property="FontSize" Value="18" />
<Setter Property="Background" Value="{StaticResource SuccessColor}" />
<Setter Property="Foreground" Value="{StaticResource SuccessColorContrast}" />
</Style>
@@ -130,6 +134,7 @@
<pu:ToastSetting x:Key="toastWarning" Spacing="25">
<pu:ToastSetting.LabelStyle>
<Style TargetType="Label" BasedOn="{StaticResource {x:Static pu:Toast.LabelStyleKey}}">
+ <Setter Property="FontSize" Value="18" />
<Setter Property="Background" Value="{StaticResource WarningColor}" />
<Setter Property="Foreground" Value="{StaticResource SuccessColorContrast}" />
</Style>
@@ -139,6 +144,7 @@
<pu:ToastSetting x:Key="toastError" Spacing="25">
<pu:ToastSetting.LabelStyle>
<Style TargetType="Label" BasedOn="{StaticResource {x:Static pu:Toast.LabelStyleKey}}">
+ <Setter Property="FontSize" Value="18" />
<Setter Property="Background" Value="{StaticResource DangerColor}" />
<Setter Property="Foreground" Value="{StaticResource DangerColorContrast}" />
</Style>
--
Gitblit v1.9.1