</Window.Resources>\r
\r
<Grid HorizontalAlignment="Stretch"\r
- VerticalAlignment="Stretch"\r
- Background="#FFF1F0EF">\r
+ VerticalAlignment="Stretch">\r
<Grid.RowDefinitions>\r
<RowDefinition Height="Auto" />\r
<RowDefinition Height="Auto" />\r
<RowDefinition Height="Auto" />\r
</Grid.RowDefinitions>\r
\r
+ <Grid.Style>\r
+ <Style TargetType="Grid">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="#FFF1F0EF" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </Grid.Style>\r
+\r
+\r
<!-- Header -->\r
<StackPanel Grid.Row="0"\r
Height="30"\r
Margin="0,0,0,10"\r
- Background="White"\r
Orientation="Horizontal">\r
+ <StackPanel.Style>\r
+ <Style TargetType="StackPanel">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="White" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </StackPanel.Style>\r
+ \r
<Image Width="24"\r
Height="24"\r
Margin="10,0,5,0"\r
\r
<!-- Controls -->\r
<Grid Grid.Row="3"\r
- Margin="0,20,0,0"\r
- Background="LightGray">\r
+ Margin="0,20,0,0">\r
+\r
+ <Grid.Style>\r
+ <Style TargetType="Grid">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="LightGray" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </Grid.Style>\r
+ \r
<Grid.ColumnDefinitions>\r
<ColumnDefinition Width="*" />\r
<ColumnDefinition Width="Auto" />\r
Height="380"\r
MinWidth="680"\r
MinHeight="380"\r
- Background="#FFF0F0F0"\r
+ Style="{StaticResource windowStyle}"\r
FontSize="11"\r
TextOptions.TextFormattingMode="Display"\r
WindowStartupLocation="CenterScreen">\r
<!-- Header -->\r
<StackPanel Grid.Row="0"\r
Margin="0,0,0,0"\r
- Background="White"\r
Orientation="Horizontal">\r
+\r
+ <StackPanel.Style>\r
+ <Style TargetType="StackPanel">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="White" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </StackPanel.Style>\r
+\r
<Image Width="64"\r
Height="64"\r
Margin="10,0,0,0"\r
\r
\r
<!-- Controls -->\r
- <Grid Grid.Row="2" Background="LightGray">\r
+ <Grid Grid.Row="2">\r
<Grid.ColumnDefinitions>\r
<ColumnDefinition Width="*" />\r
<ColumnDefinition Width="Auto" />\r
<ColumnDefinition Width="Auto" />\r
</Grid.ColumnDefinitions>\r
\r
+ <Grid.Style>\r
+ <Style TargetType="Grid">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="LightGray" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </Grid.Style>\r
+\r
<Button Grid.Column="1"\r
Margin="5"\r
cal:Message.Attach="[Event Click] = [Action Copy]"\r
SelectedItem="{Binding Path=SelectedTitle}"\r
/>\r
<Label Margin="8,0,0,0" Content="Angle" />\r
+ \r
<ComboBox Name="Angles"\r
MinWidth="60"\r
Margin="8,0,0,0"\r
</StackPanel>\r
</ScrollViewer>\r
\r
- <StackPanel HorizontalAlignment="Stretch" Background="LightGray" Grid.Row="1" Grid.ColumnSpan="2" >\r
+ <StackPanel HorizontalAlignment="Stretch" Grid.Row="1" Grid.ColumnSpan="2" >\r
+ <StackPanel.Style>\r
+ <Style TargetType="StackPanel">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="LightGray" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </StackPanel.Style>\r
+ \r
<Button Content="Close" IsDefault="True" cal:Message.Attach="[Event Click] = [Action Close]"\r
HorizontalAlignment="Center" Padding="12,2" Margin="0,5,10,5" />\r
</StackPanel>\r
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\r
Title="{Binding Title}"\r
Width="380"\r
- Background="#FFF1F0EF"\r
+ Style="{StaticResource windowStyle}"\r
ResizeMode="NoResize"\r
SizeToContent="Height"\r
WindowStartupLocation="CenterScreen"\r
\r
<StackPanel Orientation="Vertical">\r
\r
- <StackPanel Grid.Row="0"\r
- Height="34"\r
+ <StackPanel Height="34"\r
Margin="0,0,0,10"\r
- Background="White"\r
Orientation="Horizontal">\r
+\r
+ <StackPanel.Style>\r
+ <Style TargetType="StackPanel">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="White" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </StackPanel.Style>\r
+\r
<Image Width="32"\r
Height="32"\r
Margin="10,0,5,0"\r
Height="500"\r
MinWidth="350"\r
MinHeight="250"\r
- Background="#FFF0F0F0"\r
+ Style="{StaticResource windowStyle}"\r
WindowStartupLocation="CenterScreen"\r
TextOptions.TextFormattingMode="Display"\r
mc:Ignorable="d">\r
\r
<ListBox Grid.Row="2"\r
Margin="10,0,10,10"\r
- Background="LightGray"\r
dd:DragDrop.DropHandler="{Binding}"\r
dd:DragDrop.IsDragSource="True"\r
dd:DragDrop.IsDropTarget="True"\r
ItemsSource="{Binding QueueTasks, Mode=OneWay}"\r
SelectionMode="Extended">\r
+ \r
+ <ListBox.Style>\r
+ <Style TargetType="ListBox">\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
+ <Setter Property="Background" Value="LightGray" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ </Style>\r
+ </ListBox.Style>\r
\r
<ListBox.ContextMenu>\r
<ContextMenu>\r
<ListBox.ItemContainerStyle>\r
<Style TargetType="{x:Type ListBoxItem}">\r
<Setter Property="HorizontalContentAlignment" Value="Stretch" />\r
- <Setter Property="Background" Value="WhiteSmoke" />\r
<Setter Property="Margin" Value="0,0,0,1" />\r
<Setter Property="ToolTip">\r
<Setter.Value>\r
\r
</Setter.Value>\r
</Setter>\r
+ <Style.Triggers>\r
+ <DataTrigger Binding="{Binding DataContext.UseSystemColours, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False">\r
+ <Setter Property="Background" Value="WhiteSmoke" />\r
+ </DataTrigger>\r
+ </Style.Triggers>\r
+ \r
</Style>\r
</ListBox.ItemContainerStyle>\r
\r
UseLayoutRounding="True"\r
WindowStartupLocation="CenterScreen"\r
TextOptions.TextFormattingMode="Display"\r
- Style="{StaticResource mainWindowStyle}"\r
+ Style="{StaticResource windowStyle}"\r
x:Name="shellView"\r
>\r
<Window.Resources>\r
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"\r
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">\r
\r
- <Style x:Key="mainWindowStyle" TargetType="Window">\r
+ <Style x:Key="windowStyle" TargetType="Window">\r
<Style.Triggers>\r
<DataTrigger Binding="{Binding UseSystemColours}" Value="False">\r
<Setter Property="Background" Value="#FFF0F0F0" />\r