SplashWindow default theme update. (#622)

* feat: set BasedOn property for SplashWindow ControlTheme

* feat: remove default style setters from SplashWindow ControlTheme

* feat: re-format to test cla.
This commit is contained in:
Dong Bin
2025-03-27 17:42:04 +08:00
committed by GitHub
parent bb997ee884
commit f6f01ae1d9

View File

@@ -2,12 +2,10 @@
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa"> xmlns:u="https://irihi.tech/ursa">
<ControlTheme x:Key="{x:Type u:SplashWindow}" TargetType="u:SplashWindow"> <ControlTheme
<Setter Property="Background" Value="{DynamicResource WindowDefaultBackground}" /> x:Key="{x:Type u:SplashWindow}"
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" /> BasedOn="{StaticResource {x:Type Window}}"
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" /> TargetType="u:SplashWindow">
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
<Setter Property="FontFamily" Value="{DynamicResource DefaultFontFamily}" />
<Setter Property="ExtendClientAreaChromeHints" Value="NoChrome" /> <Setter Property="ExtendClientAreaChromeHints" Value="NoChrome" />
<Setter Property="ExtendClientAreaTitleBarHeightHint" Value="0" /> <Setter Property="ExtendClientAreaTitleBarHeightHint" Value="0" />
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True" /> <Setter Property="ExtendClientAreaToDecorationsHint" Value="True" />