resources/themes/EverForest.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="#2B3339"/> <!-- Deep forest green-gray --> <SolidColorBrush x:Key="ControlBackground" Color="#323D43"/> <!-- Slightly lighter --> <SolidColorBrush x:Key="ControlForeground" Color="#D3C6AA"/> <!-- Soft warm beige --> <SolidColorBrush x:Key="ButtonBackground" Color="#3A464C"/> <!-- Muted slate green --> <SolidColorBrush x:Key="ButtonForeground" Color="#E1DDC9"/> <!-- Pale parchment --> <SolidColorBrush x:Key="RichtextboxBackground" Color="#3A464C"/> <SolidColorBrush x:Key="RichtextboxForeground" Color="#E1DDC9"/> <SolidColorBrush x:Key="DataGridBackground" Color="#3A464C"/> <SolidColorBrush x:Key="DataGridForeground" Color="#D3C6AA"/> <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="#2B3339"/> <SolidColorBrush x:Key="StatusBarForeground" Color="#A7C080"/> <!-- Muted lime green --> <SolidColorBrush x:Key="MenuBackground" Color="#323D43"/> <SolidColorBrush x:Key="MenuForeground" Color="#D3C6AA"/> <SolidColorBrush x:Key="MenuItemBackground" Color="#3A464C"/> <SolidColorBrush x:Key="MenuItemForeground" Color="#E1DDC9"/> <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="#3A464C"/> <SolidColorBrush x:Key="ProgressBarForeground" Color="#A7C080"/> <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.Triggers> <EventTrigger RoutedEvent="Button.MouseEnter"> <BeginStoryboard> <Storyboard> <ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="SlateBlue" Duration="0:0:0.3" /> </Storyboard> </BeginStoryboard> </EventTrigger> <EventTrigger RoutedEvent="Button.MouseLeave"> <BeginStoryboard> <Storyboard> <ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="LightGray" Duration="0:0:0.3" /> </Storyboard> </BeginStoryboard> </EventTrigger> </Style.Triggers>--> </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> |