resources/themes/Dark.xaml
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <SolidColorBrush x:Key="WindowBackground" Color="#202020"/> <SolidColorBrush x:Key="ControlBackground" Color="#2D2D2D"/> <SolidColorBrush x:Key="ControlForeground" Color="White"/> <SolidColorBrush x:Key="ButtonBackground" Color="#444444"/> <SolidColorBrush x:Key="ButtonForeground" Color="White"/> <SolidColorBrush x:Key="RichtextboxBackground" Color="#444444"/> <SolidColorBrush x:Key="RichtextboxForeground" Color="White"/> <SolidColorBrush x:Key="DataGridBackground" Color="#444444"/> <SolidColorBrush x:Key="DataGridForeground" Color="White"/> <SolidColorBrush x:Key="DataGridRowBackground" Color="#F9F9F9" /> <SolidColorBrush x:Key="DataGridRowForeground" Color="#333333" /> <SolidColorBrush x:Key="DataGridSelectedRowBackground" Color="#D3EAF1" /> <SolidColorBrush x:Key="DataGridSelectedRowForeground" Color="#000000" /> <SolidColorBrush x:Key="DataGridAlternateRowBackground" Color="#F0F0F0" /> <SolidColorBrush x:Key="DataGridHoverRowBackground" Color="#E0E0E0" /> <SolidColorBrush x:Key="StatusBarBackground" Color="#2D2D2D"/> <SolidColorBrush x:Key="StatusBarForeground" Color="White"/> <SolidColorBrush x:Key="MenuBackground" Color="#333333" /> <SolidColorBrush x:Key="MenuForeground" Color="White" /> <SolidColorBrush x:Key="MenuItemBackground" Color="#444444" /> <SolidColorBrush x:Key="MenuItemForeground" Color="White" /> <SolidColorBrush x:Key="AccentColor" Color="#A7C080"/> <!-- Soft green --> <SolidColorBrush x:Key="HighlightColor" Color="#83C092"/> <!-- Teal green --> <SolidColorBrush x:Key="WarningColor" Color="#DBBC7F"/> <!-- Gold-tan --> <SolidColorBrush x:Key="ErrorColor" Color="#E67E80"/> <!-- Coral red --> <SolidColorBrush x:Key="ProgressBarBackground" Color="#444444"/> <SolidColorBrush x:Key="ProgressBarForeground" Color="White"/> <Style TargetType="Control"> <Setter Property="Background" Value="{DynamicResource ControlBackground}" /> <Setter Property="Foreground" Value="{DynamicResource ControlForeground}" /> </Style> <Style TargetType="Button"> <Setter Property="Background" Value="{DynamicResource ButtonBackground}" /> <Setter Property="Foreground" Value="{DynamicResource ButtonForeground}" /> </Style> <Style TargetType="Window"> <Setter Property="Background" Value="{DynamicResource WindowBackground}" /> </Style> <Style TargetType="RichTextBox"> <Setter Property="Background" Value="{DynamicResource RichtextboxBackground}" /> <Setter Property="Foreground" Value="{DynamicResource RichtextboxForeground}" /> </Style> <Style TargetType="DataGridColumnHeader"> <Setter Property="Background" Value="{DynamicResource WindowBackground}" /> <Setter Property="Foreground" Value="{DynamicResource ButtonForeground}" /> <Setter Property="Height" Value="30" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="HorizontalContentAlignment" Value="Center" /> <Setter Property="VerticalContentAlignment" Value="Center" /> <Style.Triggers> <DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True"> <Setter Property="Background" Value="{DynamicResource DataGridHoverRowBackground}" /> <Setter Property="Foreground" Value="{DynamicResource DataGridRowForeground}" /> </DataTrigger> </Style.Triggers> </Style> <Style TargetType="DataGrid"> <Setter Property="Background" Value="{DynamicResource DataGridBackground}" /> <Setter Property="Foreground" Value="{DynamicResource DataGridForeground}" /> <!-- Apply triggers for selected row --> <Style.Triggers> <DataTrigger Binding="{Binding IsSelected}" Value="True"> <Setter Property="Background" Value="{DynamicResource DataGridSelectedRowBackground}" /> <Setter Property="Foreground" Value="{DynamicResource DataGridSelectedRowForeground}" /> </DataTrigger> </Style.Triggers> </Style> <!-- DataGridRow Style with Alternating Row Backgrounds --> <Style TargetType="DataGridRow"> <Setter Property="Background" Value="{DynamicResource DataGridBackground}" /> <Setter Property="Foreground" Value="{DynamicResource DataGridForeground}" /> <Style.Triggers> <!-- Alternating Row Background --> <DataTrigger Binding="{Binding Path=AlternationIndex, RelativeSource={RelativeSource Self}}" Value="1"> <Setter Property="Background" Value="{DynamicResource DataGridAlternateRowBackground}" /> </DataTrigger> </Style.Triggers> </Style> <Style TargetType="StatusBar"> <Setter Property="Background" Value="{DynamicResource StatusBarBackground}" /> <Setter Property="Foreground" Value="{DynamicResource StatusBarForeground}" /> </Style> <Style TargetType="Menu"> <Setter Property="Background" Value="{DynamicResource MenuBackground}" /> <Setter Property="Foreground" Value="{DynamicResource MenuForeground}" /> </Style> <Style TargetType="MenuItem"> <Setter Property="Background" Value="{DynamicResource MenuItemBackground}" /> <Setter Property="Foreground" Value="{DynamicResource MenuItemForeground}" /> </Style> <Style TargetType="TextBlock" x:Key="WarningTextBlock"> <Setter Property="Foreground" Value="{DynamicResource WarningColor}" /> <Setter Property="FontWeight" Value="Bold" /> </Style> <Style TargetType="TextBlock" x:Key="ErrorTextBlock"> <Setter Property="Foreground" Value="{DynamicResource ErrorColor}" /> <Setter Property="FontWeight" Value="Bold" /> </Style> <Style TargetType="ProgressBar"> <Setter Property="Background" Value="{DynamicResource ProgressBarBackground}" /> <Setter Property="Foreground" Value="{DynamicResource ProgressBarForeground}" /> </Style> </ResourceDictionary> |