feat: system light/dark theme support with live switching and dark title bar

This commit is contained in:
SuperDooper
2026-05-08 13:47:45 +02:00
parent d3aa3dc6bd
commit b0907d17b5
+12 -8
View File
@@ -3,13 +3,17 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ShutdownMode="OnExplicitShutdown"> ShutdownMode="OnExplicitShutdown">
<Application.Resources> <Application.Resources>
<SolidColorBrush x:Key="BackgroundBrush" Color="#F3F3F3"/> <SolidColorBrush x:Key="BackgroundBrush" Color="#F3F3F3"/>
<SolidColorBrush x:Key="CardBrush" Color="#FFFFFF"/> <SolidColorBrush x:Key="CardBrush" Color="#FFFFFF"/>
<SolidColorBrush x:Key="AccentBrush" Color="#F97316"/> <SolidColorBrush x:Key="AccentBrush" Color="#F97316"/>
<SolidColorBrush x:Key="TextBrush" Color="#1C1C1C"/> <SolidColorBrush x:Key="TextBrush" Color="#1C1C1C"/>
<SolidColorBrush x:Key="SecondaryBrush" Color="#6E6E6E"/> <SolidColorBrush x:Key="SecondaryBrush" Color="#6E6E6E"/>
<SolidColorBrush x:Key="BorderBrush" Color="#E0E0E0"/> <SolidColorBrush x:Key="BorderBrush" Color="#E0E0E0"/>
<SolidColorBrush x:Key="BlueBrush" Color="#0078D4"/> <SolidColorBrush x:Key="BlueBrush" Color="#0078D4"/>
<SolidColorBrush x:Key="ButtonBrush" Color="#FFFFFF"/>
<SolidColorBrush x:Key="SurfaceBrush" Color="#FAFAFA"/>
<SolidColorBrush x:Key="BannerBgBrush" Color="#E8F2FB"/>
<SolidColorBrush x:Key="BannerBorderBrush" Color="#B3D6F5"/>
<Style x:Key="HeaderText" TargetType="TextBlock"> <Style x:Key="HeaderText" TargetType="TextBlock">
<Setter Property="FontSize" Value="10"/> <Setter Property="FontSize" Value="10"/>
@@ -48,7 +52,7 @@
</Style> </Style>
<Style x:Key="SmallButton" TargetType="Button"> <Style x:Key="SmallButton" TargetType="Button">
<Setter Property="Background" Value="#FFFFFF"/> <Setter Property="Background" Value="{StaticResource ButtonBrush}"/>
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/> <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
<Setter Property="BorderThickness" Value="1"/> <Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="{StaticResource TextBrush}"/> <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>