resources/themes/Nord.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="#2E3440"/> <!-- Dark blue-gray --> <SolidColorBrush x:Key="ControlBackground" Color="#3B4252"/> <!-- Slightly lighter --> <SolidColorBrush x:Key="ControlForeground" Color="#D8DEE9"/> <!-- Soft light gray --> <SolidColorBrush x:Key="ButtonBackground" Color="#4C566A"/> <!-- Muted steel blue --> <SolidColorBrush x:Key="ButtonForeground" Color="#ECEFF4"/> <!-- Brighter foreground --> <SolidColorBrush x:Key="RichtextboxBackground" Color="#3B4252"/> <SolidColorBrush x:Key="RichtextboxForeground" Color="#ECEFF4"/> <SolidColorBrush x:Key="DataGridBackground" Color="#3B4252"/> <SolidColorBrush x:Key="DataGridForeground" Color="#D8DEE9"/> <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="#2E3440"/> <SolidColorBrush x:Key="StatusBarForeground" Color="#88C0D0"/> <!-- Soft cyan --> <SolidColorBrush x:Key="MenuBackground" Color="#3B4252"/> <SolidColorBrush x:Key="MenuForeground" Color="#D8DEE9"/> <SolidColorBrush x:Key="MenuItemBackground" Color="#434C5E"/> <SolidColorBrush x:Key="MenuItemForeground" Color="#ECEFF4"/> <SolidColorBrush x:Key="AccentColor" Color="#81A1C1"/> <!-- Frosted blue --> <SolidColorBrush x:Key="HighlightColor" Color="#88C0D0"/> <!-- Soft cyan --> <SolidColorBrush x:Key="WarningColor" Color="#EBCB8B"/> <!-- Beige yellow --> <SolidColorBrush x:Key="ErrorColor" Color="#BF616A"/> <!-- Soft red --> <SolidColorBrush x:Key="ProgressBarBackground" Color="#3B4252"/> <SolidColorBrush x:Key="ProgressBarForeground" Color="#88C0D0"/> <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> |