mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-12 23:41:57 +12:00
81 lines
4.9 KiB
Text
81 lines
4.9 KiB
Text
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
<Style TargetType="{x:Type ToggleButton}">
|
||
|
<Setter Property="Foreground" Value="{DynamicResource SystemColors.ControlTextBrushKey}" />
|
||
|
<Setter Property="Padding" Value="2" />
|
||
|
<Setter Property="BorderThickness" Value="1" />
|
||
|
<Setter Property="Background" Value="Transparent" />
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxOutline}" />
|
||
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||
|
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*"/>
|
||
|
<ColumnDefinition Width="Auto" SharedSizeGroup="ComboBoxButton"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Border
|
||
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Padding="{TemplateBinding Padding}"
|
||
|
SnapsToDevicePixels="True"
|
||
|
Opacity="0.5">
|
||
|
<Path
|
||
|
Name="ArrowDownPath"
|
||
|
Data="M2.5,0 L8.5,0 L5.5,3"
|
||
|
Fill="{DynamicResource ComboBoxArrow}"
|
||
|
VerticalAlignment="Center"
|
||
|
HorizontalAlignment="Right"
|
||
|
Margin="5"/>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
<ControlTemplate.Triggers>
|
||
|
<Trigger Property="ToggleButton.IsChecked" Value="true">
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxOutline}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxSelected}" />
|
||
|
</Trigger>
|
||
|
<Trigger Property="UIElement.IsMouseOver" Value="True">
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
</Trigger>
|
||
|
<Trigger Property="UIElement.IsKeyboardFocused" Value="True">
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
</Trigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="True" />
|
||
|
<Condition Property="ToggleButton.IsChecked" Value="true" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxSelected}" />
|
||
|
</MultiTrigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="UIElement.IsKeyboardFocused" Value="True" />
|
||
|
<Condition Property="ToggleButton.IsChecked" Value="true" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxSelected}" />
|
||
|
</MultiTrigger>
|
||
|
<Trigger Property="IsPressed" Value="True">
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxClicked}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxClicked}" />
|
||
|
</Trigger>
|
||
|
<Trigger Property="IsEnabled" Value="False">
|
||
|
<Setter Value="{DynamicResource SystemColors.GrayTextBrushKey}" Property="Foreground" />
|
||
|
</Trigger>
|
||
|
</ControlTemplate.Triggers>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
</ResourceDictionary>
|