diff options
author | sr55 <[email protected]> | 2019-06-16 20:48:07 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-06-16 20:48:07 +0100 |
commit | d3dbfba11a60e3e09e44447ab29b69aa6e171921 (patch) | |
tree | 3c677155187364f4b910e53ed6e66ba515ac3908 /win/CS/HandBrakeWPF/Themes | |
parent | 297d4abbeca9a580ba3701bc34b016ec3d57c44e (diff) |
WinGui: Few minor features + Early access to a new "Dark" theme. It's not yet complete but will give a general idea of the look and feel! (Can be toggled on in preferences)
Diffstat (limited to 'win/CS/HandBrakeWPF/Themes')
-rw-r--r-- | win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml | 372 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Themes/Dark.xaml | 101 |
2 files changed, 473 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml b/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml new file mode 100644 index 000000000..5e3431a77 --- /dev/null +++ b/win/CS/HandBrakeWPF/Themes/Controls/ComboBoxDark.xaml @@ -0,0 +1,372 @@ +<ResourceDictionary + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"> + + <SolidColorBrush x:Key="ComboBox.Static.Background" Color="#414141" /> + <SolidColorBrush x:Key="ComboBox.Static.Border" Color="#606060" /> + <SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="Black" /> + <SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="#5D5E60" /> + <SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="Transparent" /> + <SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="Transparent" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="White" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Background" Color="#43474C" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="#7EB4EA" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="Black" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="#7EB4EA" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" Color="#1D5791" /> + <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="#4B77A3" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="White" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Background" Color="#2164A8" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="#569DE5" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="Black" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="#569DE5" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Background" Color="#2164A8" /> + <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="#569DE5" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="#BFBFBF" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="#282828" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="#A8A8A8" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="Black" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="#A8A8A8" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="Transparent" /> + <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="Transparent" /> + <SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="#B7B7B7" /> + + <Style x:Key="ComboBoxToggleButton2" TargetType="{x:Type ToggleButton}"> + <Setter Property="OverridesDefaultStyle" Value="true" /> + <Setter Property="IsTabStop" Value="false" /> + <Setter Property="Focusable" Value="false" /> + <Setter Property="ClickMode" Value="Press" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type ToggleButton}"> + <Border + x:Name="templateRoot" + Background="{DynamicResource ComboBox.Static.Background}" + BorderBrush="{DynamicResource ComboBox.Static.Border}" + BorderThickness="{TemplateBinding BorderThickness}" + SnapsToDevicePixels="true"> + <Border + x:Name="splitBorder" + Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" + Margin="0" + HorizontalAlignment="Right" + BorderBrush="Transparent" + BorderThickness="1" + SnapsToDevicePixels="true"> + <Path + x:Name="arrow" + Margin="0" + HorizontalAlignment="Center" + VerticalAlignment="Center" + Data="F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z" + Fill="{DynamicResource ComboBox.Static.Glyph}" /> + </Border> + </Border> + <ControlTemplate.Triggers> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" /> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="false" /> + <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="false" /> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="true" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.Static.Editable.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.Static.Editable.Border}" /> + <Setter TargetName="splitBorder" Property="Background" Value="{DynamicResource ComboBox.Static.Editable.Button.Background}" /> + <Setter TargetName="splitBorder" Property="BorderBrush" Value="{DynamicResource ComboBox.Static.Editable.Button.Border}" /> + </MultiDataTrigger> + <Trigger Property="IsMouseOver" Value="true"> + <Setter TargetName="arrow" Property="Fill" Value="{DynamicResource ComboBox.MouseOver.Glyph}" /> + </Trigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" /> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.MouseOver.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.MouseOver.Border}" /> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" /> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.MouseOver.Editable.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.MouseOver.Editable.Border}" /> + <Setter TargetName="splitBorder" Property="Background" Value="{DynamicResource ComboBox.MouseOver.Editable.Button.Background}" /> + <Setter TargetName="splitBorder" Property="BorderBrush" Value="{DynamicResource ComboBox.MouseOver.Editable.Button.Border}" /> + </MultiDataTrigger> + <Trigger Property="IsPressed" Value="true"> + <Setter TargetName="arrow" Property="Fill" Value="{DynamicResource ComboBox.Pressed.Glyph}" /> + </Trigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="true" /> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.Pressed.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.Pressed.Border}" /> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Self}}" Value="true" /> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.Pressed.Editable.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.Pressed.Editable.Border}" /> + <Setter TargetName="splitBorder" Property="Background" Value="{DynamicResource ComboBox.Pressed.Editable.Button.Background}" /> + <Setter TargetName="splitBorder" Property="BorderBrush" Value="{DynamicResource ComboBox.Pressed.Editable.Button.Border}" /> + </MultiDataTrigger> + <Trigger Property="IsEnabled" Value="false"> + <Setter TargetName="arrow" Property="Fill" Value="{DynamicResource ComboBox.Disabled.Glyph}" /> + </Trigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false" /> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.Disabled.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.Disabled.Border}" /> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false" /> + <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" /> + </MultiDataTrigger.Conditions> + <Setter TargetName="templateRoot" Property="Background" Value="{DynamicResource ComboBox.Disabled.Editable.Background}" /> + <Setter TargetName="templateRoot" Property="BorderBrush" Value="{DynamicResource ComboBox.Disabled.Editable.Border}" /> + <Setter TargetName="splitBorder" Property="Background" Value="{DynamicResource ComboBox.Disabled.Editable.Button.Background}" /> + <Setter TargetName="splitBorder" Property="BorderBrush" Value="{DynamicResource ComboBox.Disabled.Editable.Button.Border}" /> + </MultiDataTrigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + <ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}"> + <Grid x:Name="templateRoot" SnapsToDevicePixels="true"> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="*" /> + <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" /> + </Grid.ColumnDefinitions> + <Popup + x:Name="PART_Popup" + Grid.ColumnSpan="2" + Margin="1" + AllowsTransparency="true" + IsOpen="{Binding IsDropDownOpen, + Mode=TwoWay, + RelativeSource={RelativeSource TemplatedParent}}" + Placement="Bottom" + PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"> + <themes:SystemDropShadowChrome + x:Name="shadow" + MinWidth="{Binding ActualWidth, + ElementName=templateRoot}" + MaxHeight="{TemplateBinding MaxDropDownHeight}" + Color="Transparent"> + <Border + x:Name="dropDownBorder" + Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" + BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" + BorderThickness="1"> + <ScrollViewer x:Name="DropDownScrollViewer"> + <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled"> + <Canvas + x:Name="canvas" + Width="0" + Height="0" + HorizontalAlignment="Left" + VerticalAlignment="Top"> + <Rectangle + x:Name="opaqueRect" + Width="{Binding ActualWidth, + ElementName=dropDownBorder}" + Height="{Binding ActualHeight, + ElementName=dropDownBorder}" + Fill="{Binding Background, + ElementName=dropDownBorder}" /> + </Canvas> + <ItemsPresenter + x:Name="ItemsPresenter" + KeyboardNavigation.DirectionalNavigation="Contained" + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> + </Grid> + </ScrollViewer> + </Border> + </themes:SystemDropShadowChrome> + </Popup> + <ToggleButton + x:Name="toggleButton" + Grid.ColumnSpan="2" + Background="{TemplateBinding Background}" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}" + IsChecked="{Binding IsDropDownOpen, + Mode=TwoWay, + RelativeSource={RelativeSource TemplatedParent}}" + Style="{StaticResource ComboBoxToggleButton2}" /> + <ContentPresenter + x:Name="contentPresenter" + Margin="{TemplateBinding Padding}" + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" + Content="{TemplateBinding SelectionBoxItem}" + ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" + ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" + ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" + IsHitTestVisible="false" + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> + </Grid> + <ControlTemplate.Triggers> + <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true"> + <Setter TargetName="shadow" Property="Margin" Value="0 0 5 5" /> + <Setter TargetName="shadow" Property="Color" Value="#71000000" /> + </Trigger> + <Trigger Property="HasItems" Value="false"> + <Setter TargetName="dropDownBorder" Property="Height" Value="95" /> + </Trigger> + <MultiTrigger> + <MultiTrigger.Conditions> + <Condition Property="IsGrouping" Value="true" /> + <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" /> + </MultiTrigger.Conditions> + <Setter Property="ScrollViewer.CanContentScroll" Value="false" /> + </MultiTrigger> + <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false"> + <Setter TargetName="opaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" /> + <Setter TargetName="opaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" /> + </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> + <ColumnDefinition Width="*" /> + <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" /> + </Grid.ColumnDefinitions> + <Popup + x:Name="PART_Popup" + Grid.ColumnSpan="2" + AllowsTransparency="true" + IsOpen="{Binding IsDropDownOpen, + RelativeSource={RelativeSource TemplatedParent}}" + Placement="Bottom" + PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"> + <themes:SystemDropShadowChrome + x:Name="shadow" + MinWidth="{Binding ActualWidth, + ElementName=templateRoot}" + MaxHeight="{TemplateBinding MaxDropDownHeight}" + Color="Transparent"> + <Border + x:Name="dropDownBorder" + Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" + BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" + BorderThickness="1"> + <ScrollViewer x:Name="DropDownScrollViewer"> + <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled"> + <Canvas + x:Name="canvas" + Width="0" + Height="0" + HorizontalAlignment="Left" + VerticalAlignment="Top"> + <Rectangle + x:Name="opaqueRect" + Width="{Binding ActualWidth, + ElementName=dropDownBorder}" + Height="{Binding ActualHeight, + ElementName=dropDownBorder}" + Fill="{Binding Background, + ElementName=dropDownBorder}" /> + </Canvas> + <ItemsPresenter + x:Name="ItemsPresenter" + KeyboardNavigation.DirectionalNavigation="Contained" + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> + </Grid> + </ScrollViewer> + </Border> + </themes:SystemDropShadowChrome> + </Popup> + <ToggleButton + x:Name="toggleButton" + Grid.ColumnSpan="2" + Background="{TemplateBinding Background}" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}" + IsChecked="{Binding IsDropDownOpen, + Mode=TwoWay, + RelativeSource={RelativeSource TemplatedParent}}" + Style="{StaticResource ComboBoxToggleButton2}" /> + <Border + x:Name="border" + Margin="{TemplateBinding BorderThickness}" + Background="{StaticResource TextBox.Static.Background}"> + <TextBox + x:Name="PART_EditableTextBox" + Margin="{TemplateBinding Padding}" + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" + IsReadOnly="{Binding IsReadOnly, + RelativeSource={RelativeSource TemplatedParent}}" + Style="{StaticResource ComboBoxEditableTextBox}" /> + </Border> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="IsEnabled" Value="false"> + <Setter TargetName="border" Property="Opacity" Value="0.56" /> + </Trigger> + <Trigger Property="IsKeyboardFocusWithin" Value="true"> + <Setter Property="Foreground" Value="Black" /> + </Trigger> + <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true"> + <Setter TargetName="shadow" Property="Margin" Value="0 0 5 5" /> + <Setter TargetName="shadow" Property="Color" Value="#71000000" /> + </Trigger> + <Trigger Property="HasItems" Value="false"> + <Setter TargetName="dropDownBorder" Property="Height" Value="95" /> + </Trigger> + <MultiTrigger> + <MultiTrigger.Conditions> + <Condition Property="IsGrouping" Value="true" /> + <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" /> + </MultiTrigger.Conditions> + <Setter Property="ScrollViewer.CanContentScroll" Value="false" /> + </MultiTrigger> + <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false"> + <Setter TargetName="opaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" /> + <Setter TargetName="opaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" /> + </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}" /> + <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" /> + <Setter Property="BorderThickness" Value="1" /> + <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" /> + <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /> + <Setter Property="Padding" Value="6 3 5 3" /> + <Setter Property="ScrollViewer.CanContentScroll" Value="true" /> + <Setter Property="ScrollViewer.PanningMode" Value="Both" /> + <Setter Property="Stylus.IsFlicksEnabled" Value="False" /> + <Setter Property="Template" Value="{StaticResource ComboBoxTemplate}" /> + <Style.Triggers> + <Trigger Property="IsEditable" Value="true"> + <Setter Property="IsTabStop" Value="false" /> + <Setter Property="Padding" Value="2" /> + <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" /> + </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 new file mode 100644 index 000000000..a68fba433 --- /dev/null +++ b/win/CS/HandBrakeWPF/Themes/Dark.xaml @@ -0,0 +1,101 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> + <!-- + #252525 - Dark + #363636 - Mid + + #414141 - Light + #606060 - Ultralight + --> + + <SolidColorBrush x:Key="Ui.Dark" Color="#252525" /> + <SolidColorBrush x:Key="Ui.Mid" Color="#363636" /> + + <SolidColorBrush x:Key="Ui.Light" Color="#464646" /> + <SolidColorBrush x:Key="Ui.Ultralight" Color="#606060" /> + + <!-- General --> + <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="#252525" /> + <SolidColorBrush x:Key="{x:Static SystemColors.WindowTextBrushKey}" Color="White" /> + <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="White" /> + <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="WhiteSmoke" /> + + + <!-- Button --> + <Style TargetType="Button"> + <Setter Property="Background" Value="{DynamicResource Ui.Light}" /> + <Setter Property="Foreground" Value="White" /> + </Style> + + <!-- Listbox --> + <Style TargetType="ListBox"> + <Setter Property="Background" Value="{DynamicResource Ui.Dark}" /> + <Setter Property="Foreground" Value="White" /> + </Style> + + <!-- Toolbar --> + <Style TargetType="ToolBar"> + <Setter Property="Background" Value="Black" /> + <Setter Property="Foreground" Value="White" /> + </Style> + + <!-- Menu --> + <Style TargetType="Menu"> + <Setter Property="Background" Value="{DynamicResource Ui.Mid}" /> + <Setter Property="Foreground" Value="White" /> + </Style> + + <Style TargetType="MenuItem"> + <Setter Property="Background" Value="{DynamicResource Ui.Mid}" /> + <Setter Property="Foreground" Value="White" /> + </Style> + + <!-- StatusBar --> + <Style TargetType="StatusBar"> + <Setter Property="Background" Value="{DynamicResource Ui.Mid}" /> + <Setter Property="Foreground" Value="White" /> + </Style> + + <!-- Text Entry Controls --> + <Style TargetType="TextBox"> + <Setter Property="Background" Value="{DynamicResource Ui.Light}" /> + </Style> + + <Style TargetType="{x:Type TextBlock}"> + <Setter Property="Foreground" Value="White"/> + </Style> + + <!-- Tab Control --> + <Style TargetType="{x:Type TabControl}"> + <Setter Property="Background" Value="{DynamicResource Ui.Mid}"/> + <Setter Property="BorderThickness" Value="0"/> + <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> + </Style> + + <Style TargetType="TabItem"> + <Setter Property="Background" Value="{DynamicResource Ui.Mid}" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="TabItem"> + <Grid Name="Panel"> + <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header" Margin="10,6"/> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="IsSelected" Value="True"> + <Setter TargetName="Panel" Property="Background" Value="{DynamicResource Ui.Mid}" /> + </Trigger> + <Trigger Property="IsSelected" Value="False"> + <Setter TargetName="Panel" Property="Background" Value="{DynamicResource Ui.Dark}" /> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + + <!-- ComboBox --> + <ResourceDictionary.MergedDictionaries> + <ResourceDictionary Source="Controls/ComboBoxDark.xaml" /> + </ResourceDictionary.MergedDictionaries> + +</ResourceDictionary>
\ No newline at end of file |