EonaCat.Port.Monitor/EonaCat.PortMonitor/Themes.xaml

94 lines
4.1 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Global Styles -->
<Style TargetType="Window">
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}"/>
</Style>
<Style TargetType="Button">
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}"/>
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}"/>
<Setter Property="Padding" Value="5"/>
<Setter Property="Margin" Value="5"/>
</Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}"/>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}"/>
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}"/>
<Setter Property="BorderBrush" Value="{DynamicResource DynamicTextColor}"/>
</Style>
<Style TargetType="DataGrid">
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}"/>
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}"/>
<Setter Property="RowBackground" Value="{DynamicResource DynamicBackgroundColor}"/>
<Setter Property="SelectionMode" Value="Single" />
<Setter Property="GridLinesVisibility" Value="All"/>
</Style>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}" />
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}" />
<Setter Property="Height" Value="30"/>
<Setter Property="Padding" Value="5"/>
</Style>
<Style TargetType="DataGridCell">
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}" />
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}" />
<Setter Property="Padding" Value="5" />
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="True">
<Setter Property="Background" Value="Green"/>
<Setter Property="Foreground" Value="White"/>
</DataTrigger>
</Style.Triggers>
</Style>
<!-- TabControl Theming -->
<Style TargetType="TabControl">
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}" />
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}" />
<Setter Property="Margin" Value="10" />
<Setter Property="Padding" Value="5" />
</Style>
<!-- TabItem Theming -->
<Style TargetType="TabItem">
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}" />
<Setter Property="Foreground" Value="{DynamicResource DynamicTextColor}" />
<Setter Property="Height" Value="30"/>
<Setter Property="Padding" Value="5"/>
<Style.Triggers>
<!-- Change color when TabItem is selected -->
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="True">
<Setter Property="Background" Value="{DynamicResource DynamicTextColor}" />
<Setter Property="Foreground" Value="Green" />
</DataTrigger>
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True">
<Setter Property="Background" Value="{DynamicResource DynamicTextColor}" />
<Setter Property="Foreground" Value="Green" />
</DataTrigger>
</Style.Triggers>
</Style>
<Style TargetType="TabPanel">
<Setter Property="Background" Value="{DynamicResource DynamicBackgroundColor}" />
</Style>
</ResourceDictionary>