summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Themes
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-06-22 21:49:28 +0100
committersr55 <[email protected]>2019-06-22 21:49:28 +0100
commitf6674a9e215a48c7b3d8629f214c1efb98df0c6a (patch)
treef3e66910f89fa5454ed4f4996328a079a01b367d /win/CS/HandBrakeWPF/Themes
parent0d95dacfc29d4b7bb92f1fb52266c1f376e06416 (diff)
WinGui: Further work on the new Dark Theme.
Diffstat (limited to 'win/CS/HandBrakeWPF/Themes')
-rw-r--r--win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml10
-rw-r--r--win/CS/HandBrakeWPF/Themes/Dark.xaml39
2 files changed, 40 insertions, 9 deletions
diff --git a/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml b/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml
index 5e3431a77..2f137f41d 100644
--- a/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml
+++ b/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml
@@ -144,6 +144,7 @@
</Setter.Value>
</Setter>
</Style>
+
<ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
<Grid.ColumnDefinitions>
@@ -240,7 +241,9 @@
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
+
<SolidColorBrush x:Key="TextBox.Static.Background" Color="#FFFFFFFF" />
+
<ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
<Grid.ColumnDefinitions>
@@ -343,6 +346,7 @@
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
+
<Style x:Key="ComboBoxBaseStyle" TargetType="ComboBox">
<Setter Property="Background" Value="{StaticResource ComboBox.Static.Background}" />
<Setter Property="BorderBrush" Value="{StaticResource ComboBox.Static.Border}" />
@@ -363,10 +367,6 @@
</Trigger>
</Style.Triggers>
</Style>
- <Style BasedOn="{StaticResource ComboBoxBaseStyle}" TargetType="{x:Type ComboBox}" />
- <Style
- x:Key="ButtonStyle1"
- BasedOn="{StaticResource ButtonBaseStyle}"
- TargetType="{x:Type Button}" />
+
</ResourceDictionary> \ No newline at end of file
diff --git a/win/CS/HandBrakeWPF/Themes/Dark.xaml b/win/CS/HandBrakeWPF/Themes/Dark.xaml
index a68fba433..627df5c3c 100644
--- a/win/CS/HandBrakeWPF/Themes/Dark.xaml
+++ b/win/CS/HandBrakeWPF/Themes/Dark.xaml
@@ -20,9 +20,8 @@
<SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="White" />
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="WhiteSmoke" />
-
<!-- Button -->
- <Style TargetType="Button">
+ <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Background" Value="{DynamicResource Ui.Light}" />
<Setter Property="Foreground" Value="White" />
</Style>
@@ -50,6 +49,24 @@
<Setter Property="Foreground" Value="White" />
</Style>
+ <Style TargetType="{x:Type ContextMenu}">
+ <Setter Property="Background" Value="{DynamicResource Ui.Mid}"/>
+ <Setter Property="Foreground" Value="WhiteSmoke"/>
+ </Style>
+
+ <Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="{x:Type Separator}">
+ <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type Separator}">
+ <Grid Margin="3,2,3,2" SnapsToDevicePixels="true" UseLayoutRounding="False">
+ <Rectangle Fill="WhiteSmoke" Height="1"/>
+ </Grid>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+
<!-- StatusBar -->
<Style TargetType="StatusBar">
<Setter Property="Background" Value="{DynamicResource Ui.Mid}" />
@@ -57,7 +74,7 @@
</Style>
<!-- Text Entry Controls -->
- <Style TargetType="TextBox">
+ <Style TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="Background" Value="{DynamicResource Ui.Light}" />
</Style>
@@ -93,7 +110,21 @@
</Setter>
</Style>
- <!-- ComboBox -->
+ <!-- DataGrid -->
+ <Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
+ <Setter Property="Background" Value="{DynamicResource Ui.Dark}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Ui.Ultralight}"/>
+ <Setter Property="Height" Value="28" />
+ <Setter Property="BorderThickness" Value="0,1,0,1"/>
+ </Style>
+
+ <!-- ComboBox-->
+ <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ComboBoxBaseStyle}">
+ <Setter Property="MinHeight" Value="22"/>
+ <Setter Property="Margin" Value="0,2,0,2" />
+ <Setter Property="ToolTipService.ShowDuration" Value="20000" />
+ </Style>
+
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Controls/ComboBoxDark.xaml" />
</ResourceDictionary.MergedDictionaries>