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:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa">
<ControlTheme x:Key="{x:Type u:SplashWindow}" TargetType="u:SplashWindow">
<Setter Property="Background" Value="{DynamicResource WindowDefaultBackground}" />
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
<Setter Property="FontFamily" Value="{DynamicResource DefaultFontFamily}" />
<ControlTheme
x:Key="{x:Type u:SplashWindow}"
BasedOn="{StaticResource {x:Type Window}}"
TargetType="u:SplashWindow">
<Setter Property="ExtendClientAreaChromeHints" Value="NoChrome" />
<Setter Property="ExtendClientAreaTitleBarHeightHint" Value="0" />
<Setter Property="ExtendClientAreaToDecorationsHint" Value="True" />