Simplify App.xaml style setters

This commit is contained in:
Chev 2021-01-24 01:00:05 -08:00
parent 08769b41e5
commit eacd7821f0

View file

@ -17,12 +17,12 @@
<SolidColorBrush x:Key="BorderGray" Color="#506071"/> <SolidColorBrush x:Key="BorderGray" Color="#506071"/>
<Style TargetType="{x:Type Label}"> <Style TargetType="{x:Type Label}">
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
</Style> </Style>
<Style TargetType="{x:Type Button}"> <Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="{StaticResource ButtonBG}"></Setter> <Setter Property="Background" Value="{StaticResource ButtonBG}"/>
<Setter Property="Foreground" Value="White"></Setter> <!-- Text color --> <Setter Property="Foreground" Value="White"/> <!-- Text color -->
<Setter Property="BorderBrush" Value="White"></Setter> <Setter Property="BorderBrush" Value="White"/>
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
@ -35,18 +35,18 @@
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"> <Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{StaticResource BGTone3}" /> <Setter Property="Background" Value="{StaticResource BGTone3}"/>
<Setter Property="Foreground" Value="White" /> <Setter Property="Foreground" Value="White"/>
</Trigger> </Trigger>
<Trigger Property="IsPressed" Value="True"> <Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="{StaticResource ButtonSelected}" /> <Setter Property="Background" Value="{StaticResource ButtonSelected}"/>
<Setter Property="Foreground" Value="White" /> <Setter Property="Foreground" Value="White"/>
</Trigger> </Trigger>
<Trigger Property="IsEnabled" Value="False"> <Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="Transparent" /> <Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{StaticResource BorderGray}" /> <Setter Property="Foreground" Value="{StaticResource BorderGray}"/>
</Trigger> </Trigger>
</ControlTemplate.Triggers> </ControlTemplate.Triggers>
</ControlTemplate> </ControlTemplate>
@ -54,14 +54,14 @@
</Setter> </Setter>
</Style> </Style>
<Style TargetType="{x:Type TabControl}"> <Style TargetType="{x:Type TabControl}">
<Setter Property="Background" Value="{StaticResource BGTone1}"></Setter> <Setter Property="Background" Value="{StaticResource BGTone1}"/>
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="Transparent"></Setter> <Setter Property="BorderBrush" Value="Transparent"/>
</Style> </Style>
<Style TargetType="{x:Type TabItem}"> <Style TargetType="{x:Type TabItem}">
<Setter Property="Background" Value="{StaticResource BGTone2}"></Setter> <Setter Property="Background" Value="{StaticResource BGTone2}"/>
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="Transparent"></Setter> <Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
@ -99,30 +99,31 @@
</Setter> </Setter>
</Style> </Style>
<Style TargetType="{x:Type Menu}"> <Style TargetType="{x:Type Menu}">
<Setter Property="Background" Value="{StaticResource BGTone2}"></Setter> <Setter Property="Background" Value="{StaticResource BGTone2}"/>
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
</Style> </Style>
<Style TargetType="{x:Type MenuItem}"> <Style TargetType="{x:Type MenuItem}">
<Setter Property="Foreground" Value="#FF212121"></Setter> <Setter Property="Foreground" Value="#FF212121"/>
<Setter Property="BorderThickness" Value="0"/>
</Style> </Style>
<Style TargetType="{x:Type TextBox}"> <Style TargetType="{x:Type TextBox}">
<Setter Property="Background" Value="Transparent"></Setter> <Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="{StaticResource BorderGray}"></Setter> <Setter Property="BorderBrush" Value="{StaticResource BorderGray}"/>
</Style> </Style>
<Style TargetType="{x:Type Border}"> <Style TargetType="{x:Type Border}">
<Setter Property="BorderBrush" Value="{StaticResource BorderGray}"></Setter> <Setter Property="BorderBrush" Value="{StaticResource BorderGray}"/>
<Setter Property="BorderThickness" Value="1"></Setter> <Setter Property="BorderThickness" Value="1"/>
</Style> </Style>
<Style TargetType="{x:Type Image}"> <Style TargetType="{x:Type Image}">
<!--Smooth edges on transparent images--> <!--Smooth edges on transparent images-->
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"></Setter> <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
</Style> </Style>
<Style TargetType="{x:Type Expander}"> <Style TargetType="{x:Type Expander}">
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
</Style> </Style>
<Style TargetType="{x:Type CheckBox}"> <Style TargetType="{x:Type CheckBox}">
<Setter Property="Foreground" Value="White"></Setter> <Setter Property="Foreground" Value="White"/>
</Style> </Style>
</Application.Resources> </Application.Resources>
</Application> </Application>