alielie
2025-11-21 3a471ae651b228231bebb3a2d438baa1d4ac0261
HMI.UI/Style/MsgBoxStyle.xaml
@@ -5,12 +5,15 @@
xmlns:puconfig="clr-namespace:Panuon.WPF.UI.Configurations;assembly=Panuon.WPF.UI">
    <pu:MessageBoxXSettings x:Key="MsgBoxWarn" 
                                 InteropOwnersMask="True"
                                 InteropOwnersMask="False"
                                 InverseButtonsSequence="False">
        <pu:MessageBoxXSettings.WindowXStyle>
            <Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
                <Setter Property="pu:WindowXCaption.Background" Value="{StaticResource WarningColor}" />
                <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>
@@ -41,12 +44,15 @@
    </pu:MessageBoxXSettings>
    <pu:MessageBoxXSettings x:Key="MsgBoxError" 
                             InteropOwnersMask="True"
                             InteropOwnersMask="False"
                             InverseButtonsSequence="False">
        <pu:MessageBoxXSettings.WindowXStyle>
            <Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
                <Setter Property="pu:WindowXCaption.Background" Value="{StaticResource DangerColor}" />
                <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>
@@ -77,12 +83,15 @@
    </pu:MessageBoxXSettings>
    <pu:MessageBoxXSettings x:Key="MsgBoxInfo" 
                             InteropOwnersMask="True"
                             InteropOwnersMask="False"
                             InverseButtonsSequence="False">
        <pu:MessageBoxXSettings.WindowXStyle>
            <Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
                <Setter Property="pu:WindowXCaption.Background" Value="{StaticResource PrimaryColor}" />
                <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>
@@ -112,30 +121,33 @@
        </pu:MessageBoxXSettings.ButtonStyle>
    </pu:MessageBoxXSettings>
    <pu:ToastSettings x:Key="toastSuccess" Spacing="25">
        <pu:ToastSettings.LabelStyle>
    <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>
        </pu:ToastSettings.LabelStyle>
    </pu:ToastSettings>
        </pu:ToastSetting.LabelStyle>
    </pu:ToastSetting>
    <pu:ToastSettings x:Key="toastWarning" Spacing="25">
        <pu:ToastSettings.LabelStyle>
    <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>
        </pu:ToastSettings.LabelStyle>
    </pu:ToastSettings>
        </pu:ToastSetting.LabelStyle>
    </pu:ToastSetting>
    <pu:ToastSettings x:Key="toastError" Spacing="25">
        <pu:ToastSettings.LabelStyle>
    <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>
        </pu:ToastSettings.LabelStyle>
    </pu:ToastSettings>
        </pu:ToastSetting.LabelStyle>
    </pu:ToastSetting>
</ResourceDictionary>