102 lines
5.0 KiB
XML
102 lines
5.0 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="Generic.xaml"/>
|
|
<ResourceDictionary Source="UserControl.xaml"/>
|
|
<ResourceDictionary Source="Window.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<SolidColorBrush
|
|
x:Key="langTokens"/>
|
|
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Style>
|
|
|
|
<Style x:Key="MahApps.Styles.DataGridColumnHeader" TargetType="{x:Type DataGridColumnHeader}"/>
|
|
|
|
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Background" Value="#FF333337" />
|
|
<Setter Property="BorderBrush" Value="#55FFFFFF" />
|
|
<Setter Property="Foreground" Value="#FFFFFFFF" />
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="Margin" Value="2"/>
|
|
<Setter Property="Padding" Value="1 5"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type TextBox}">
|
|
<Setter Property="Background" Value="#FF252525"/>
|
|
<Setter Property="BorderBrush" Value="#FF333337"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Height" Value="32"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="2"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Padding" Value="2 0"/>
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource {x:Type RadioButton}}">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Style>
|
|
|
|
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FF252525" />
|
|
<ControlTemplate x:Key="ComboBoxToggleButton" TargetType="ToggleButton">
|
|
<Grid Background="#FF252525">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="20" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border x:Name="Border" Grid.ColumnSpan="2" CornerRadius="0" BorderThickness="1" />
|
|
<Border Grid.Column="0" CornerRadius="2,0,0,2" Margin="0" Background="#FF252525" BorderThickness="0,0,1,0" />
|
|
<Path x:Name="Arrow" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0 0 L 4 4 L 8 0 Z" Fill="White"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
|
|
<ControlTemplate x:Key="ComboBoxTextBox" TargetType="TextBox">
|
|
<Border x:Name="PART_ContentHost" Focusable="False" Background="{TemplateBinding Background}" />
|
|
</ControlTemplate>
|
|
|
|
<Style x:Key="{x:Type ComboBox}" TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBox">
|
|
<Grid>
|
|
<ToggleButton Name="ToggleButton" Template="{StaticResource ComboBoxToggleButton}" Grid.Column="2" Focusable="false"
|
|
IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press">
|
|
</ToggleButton>
|
|
<ContentPresenter Name="ContentSite" IsHitTestVisible="False" Margin="3,3,23,3" VerticalAlignment="Center" HorizontalAlignment="Left" />
|
|
<TextBox x:Name="PART_EditableTextBox" Style="{x:Null}" Template="{StaticResource ComboBoxTextBox}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
Margin="3,3,23,3"
|
|
Focusable="True"
|
|
Background="Transparent"
|
|
Visibility="Hidden"
|
|
IsReadOnly="{TemplateBinding IsReadOnly}"/>
|
|
<Popup
|
|
Name="Popup"
|
|
Placement="Bottom"
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
AllowsTransparency="True"
|
|
Focusable="False"
|
|
PopupAnimation="Slide">
|
|
<Grid
|
|
Name="DropDown"
|
|
SnapsToDevicePixels="True"
|
|
MinWidth="{TemplateBinding ActualWidth}"
|
|
MaxHeight="{TemplateBinding MaxDropDownHeight}">
|
|
<Border x:Name="DropDownBorder" Background="{StaticResource WindowBackgroundBrush}" BorderThickness="0.1"/>
|
|
<ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
|
|
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Popup>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |