2016-06-18 18:30:12 +00:00
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2021-12-31 17:48:04 +00:00
|
|
|
xmlns:avalonedit="http://icsharpcode.net/sharpdevelop/avalonedit"
|
|
|
|
xmlns:controls="clr-namespace:PettingZoo.WPF.Controls">
|
2016-06-18 18:30:12 +00:00
|
|
|
<!-- Global styling -->
|
|
|
|
<Style x:Key="WindowStyle" TargetType="{x:Type Window}">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
|
|
|
</Style>
|
|
|
|
|
2021-12-31 17:48:04 +00:00
|
|
|
<Style x:Key="{x:Type Button}" TargetType="{x:Type Button}">
|
2016-06-18 18:30:12 +00:00
|
|
|
<Setter Property="Padding" Value="8,4"/>
|
|
|
|
</Style>
|
|
|
|
|
2021-12-31 17:48:04 +00:00
|
|
|
<Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}">
|
2021-12-06 13:08:29 +00:00
|
|
|
<Setter Property="Padding" Value="3" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
2016-06-18 18:30:12 +00:00
|
|
|
<!-- Explicit styling -->
|
2016-06-20 10:30:03 +00:00
|
|
|
<Style x:Key="SidePanel" TargetType="{x:Type Border}">
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="HeaderLabel" TargetType="{x:Type Label}">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InactiveCaptionBrushKey}}"/>
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InactiveCaptionTextBrushKey}}"/>
|
|
|
|
</Style>
|
2021-12-31 17:48:04 +00:00
|
|
|
|
2016-06-18 18:30:12 +00:00
|
|
|
<Style x:Key="FooterPanel" TargetType="{x:Type Panel}">
|
|
|
|
<Setter Property="Margin" Value="0,8,0,0" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="FooterButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
|
|
<Setter Property="Margin" Value="8,0,0,0" />
|
|
|
|
</Style>
|
2021-12-18 11:18:35 +00:00
|
|
|
|
|
|
|
<Style x:Key="FooterButtonLeft" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
|
|
<Setter Property="Margin" Value="0,0,8,0" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
2021-12-31 17:48:04 +00:00
|
|
|
<Style x:Key="Form" TargetType="{x:Type controls:GridLayout}">
|
2016-06-18 18:30:12 +00:00
|
|
|
<Setter Property="ChildMargin" Value="4"/>
|
|
|
|
</Style>
|
2021-12-31 17:48:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="Placeholder" TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="Padding" Value="6,0,0,0" />
|
|
|
|
<Setter Property="Foreground" Value="{x:Static SystemColors.GrayTextBrush}" />
|
|
|
|
<Setter Property="IsHitTestVisible" Value="False" />
|
|
|
|
</Style>
|
2016-06-20 10:30:03 +00:00
|
|
|
|
|
|
|
<Style x:Key="Properties" TargetType="{x:Type DataGrid}">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
|
|
|
|
<Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
|
|
|
<Setter Property="VerticalGridLinesBrush" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
|
|
|
</Style>
|
2016-06-20 21:22:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="ToolbarIcon" TargetType="{x:Type Image}">
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
<Setter Property="Opacity" Value="0.25"/>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
2022-01-14 08:13:55 +00:00
|
|
|
<Style x:Key="ButtonIcon" TargetType="{x:Type Image}">
|
|
|
|
<Setter Property="Margin" Value="0,0,8,0" />
|
|
|
|
<Setter Property="Width" Value="16" />
|
|
|
|
<Setter Property="Height" Value="16" />
|
|
|
|
</Style>
|
|
|
|
|
2016-06-20 21:22:20 +00:00
|
|
|
|
|
|
|
<Style x:Key="Timestamp" TargetType="{x:Type TextBlock}">
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="False">
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
2021-12-06 13:08:29 +00:00
|
|
|
<Style x:Key="RoutingKey">
|
|
|
|
</Style>
|
|
|
|
|
2021-12-15 09:50:45 +00:00
|
|
|
<Style x:Key="TypeSelection" TargetType="{x:Type ToggleButton}">
|
2021-11-28 13:18:21 +00:00
|
|
|
<Setter Property="Margin" Value="0 0 8 0" />
|
2021-12-15 09:50:45 +00:00
|
|
|
<Setter Property="Padding" Value="8 4 8 4" />
|
2021-11-28 13:18:21 +00:00
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
2016-06-20 21:22:20 +00:00
|
|
|
</Style>
|
2021-12-06 13:08:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="SectionLabel" TargetType="{x:Type Label}">
|
|
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
|
|
</Style>
|
|
|
|
|
2021-12-18 11:18:35 +00:00
|
|
|
|
2021-12-25 09:46:59 +00:00
|
|
|
<Style x:Key="Payload" TargetType="{x:Type avalonedit:TextEditor}">
|
2021-12-18 11:18:35 +00:00
|
|
|
<Setter Property="FontFamily" Value="Consolas,Courier New" />
|
2022-01-12 07:40:20 +00:00
|
|
|
<Setter Property="WordWrap" Value="True" />
|
2021-12-18 11:18:35 +00:00
|
|
|
</Style>
|
2021-12-25 09:46:59 +00:00
|
|
|
|
|
|
|
<Style x:Key="ControlBorder" TargetType="{x:Type Border}">
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
</Style>
|
2016-06-18 18:30:12 +00:00
|
|
|
</ResourceDictionary>
|