diff options
author | sr55 <[email protected]> | 2014-01-02 21:48:00 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-01-02 21:48:00 +0000 |
commit | b90ef6a6ccef4df001506375414882ed4deac993 (patch) | |
tree | 9d45ab4b8e365b10f85a4331824341281bee9e06 /win/CS/HandBrakeWPF/Views/QueueView.xaml | |
parent | e6b6f7bd7c7da9c0f8fb100613b40140911398d1 (diff) |
WinGui: Fix a number of styles that were not obeying the Use System Colours option.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5953 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueView.xaml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml index 77532e924..5ff075455 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml @@ -16,7 +16,7 @@ Height="500"
MinWidth="350"
MinHeight="250"
- Background="#FFF0F0F0"
+ Style="{StaticResource windowStyle}"
WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display"
mc:Ignorable="d">
@@ -156,12 +156,21 @@ <ListBox Grid.Row="2"
Margin="10,0,10,10"
- Background="LightGray"
dd:DragDrop.DropHandler="{Binding}"
dd:DragDrop.IsDragSource="True"
dd:DragDrop.IsDropTarget="True"
ItemsSource="{Binding QueueTasks, Mode=OneWay}"
SelectionMode="Extended">
+
+ <ListBox.Style>
+ <Style TargetType="ListBox">
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">
+ <Setter Property="Background" Value="LightGray" />
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </ListBox.Style>
<ListBox.ContextMenu>
<ContextMenu>
@@ -176,7 +185,6 @@ <ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="Background" Value="WhiteSmoke" />
<Setter Property="Margin" Value="0,0,0,1" />
<Setter Property="ToolTip">
<Setter.Value>
@@ -226,6 +234,12 @@ </Setter.Value>
</Setter>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding DataContext.UseSystemColours, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False">
+ <Setter Property="Background" Value="WhiteSmoke" />
+ </DataTrigger>
+ </Style.Triggers>
+
</Style>
</ListBox.ItemContainerStyle>
|