2026-01-26 14:51:28 +09:00

192 lines
11 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:usercontrols="clr-namespace:AuroraUIComponent.UserControls">
<Style x:Key="StRbJogUnit" TargetType="{x:Type RadioButton}" BasedOn="{StaticResource {x:Type RadioButton}}">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Foreground" Value="#bbbbbb"/>
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="3"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border Name="border" BorderThickness="0.5" Background="#301E67" BorderBrush="#1A2242" CornerRadius="10">
<ContentPresenter Margin="{TemplateBinding Margin}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="border" Property="Background" Value="#5B8FB9"/>
<Setter TargetName="border" Property="BorderThickness" Value="1"/>
<Setter Property="FontWeight" Value="Bold"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="stRadio" TargetType="RadioButton" BasedOn="{StaticResource {x:Type RadioButton}}">
<Setter Property="MinWidth" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=ActualHeight}"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Height" Value="Auto"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border Name="border" BorderThickness="0" Background="#1A2242"
BorderBrush="#1A2242" CornerRadius="2">
<ContentPresenter Name="Content" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.TextAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.6" />
</Trigger>
<Trigger Property="IsChecked"
Value="True">
<Setter TargetName="border"
Property="Background"
Value="#A50034" />
<Setter TargetName="border"
Property="BorderThickness"
Value="0" />
<Setter Property="FontWeight"
Value="Bold" />
<Setter Property="Foreground" Value="White"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.6" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="stRadioOrange" TargetType="RadioButton" BasedOn="{StaticResource {x:Type RadioButton}}">
<Setter Property="MinWidth" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=ActualHeight}"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Height" Value="Auto"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border Name="border" BorderThickness="0" Background="Gray"
BorderBrush="Gray" CornerRadius="2">
<ContentPresenter Name="Content" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.TextAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.6" />
</Trigger>
<Trigger Property="IsChecked"
Value="True">
<Setter TargetName="border"
Property="Background"
Value="{StaticResource BLGOrange}" />
<Setter TargetName="border"
Property="BorderThickness"
Value="0" />
<Setter Property="FontWeight"
Value="Bold" />
<Setter Property="Foreground" Value="White"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.6" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="styleRbSimple" TargetType="RadioButton" BasedOn="{StaticResource {x:Type RadioButton}}">
<Style.Resources>
<Brush x:Key="BdBackground">#1A2242</Brush>
<Brush x:Key="BdCheckedBackground">#1A2242</Brush>
<Brush x:Key="CheckedForeground">Lime</Brush>
</Style.Resources>
<Setter Property="MinWidth" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=ActualHeight}"/>
<Setter Property="Foreground" Value="#bbbbbb"/>
<Setter Property="Height" Value="Auto"/>
<Setter Property="Margin" Value="2"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border Name="border" BorderThickness="0" Background="#6B6B6B"
BorderBrush="#1A2242">
<ContentPresenter Name="Content" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.TextAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsChecked"
Value="True">
<!--<Setter TargetName="border"
Property="Background"
Value="{StaticResource BdCheckedBackground}" />
<Setter TargetName="border"
Property="BorderThickness"
Value="0" />-->
<!--<Setter Property="FontWeight"
Value="Bold" />-->
<Setter Property="Foreground" Value="{StaticResource CheckedForeground}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="StButtonRadio" TargetType="{x:Type RadioButton}" BasedOn="{StaticResource {x:Type RadioButton}}">
<Setter Property="Foreground" Value="{StaticResource MahApps.Brushes.ThemeForeground}" />
<Setter Property="Background" Value="{StaticResource MahApps.Brushes.ThemeBackground}" />
<Setter Property="BorderBrush" Value="#5a5a5a"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="10 2" />
<Setter Property="FontSize" Value="11" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{TemplateBinding Margin}" Padding="{TemplateBinding Padding}" IsEnabled="{TemplateBinding IsEnabled}">
<StackPanel Orientation="Horizontal"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Center">
<usercontrols:UCLedLight LedStatusVal="{Binding IsChecked, RelativeSource={RelativeSource AncestorType=RadioButton}}"/>
<ContentPresenter Margin="5 0" Content="{Binding Content, RelativeSource={RelativeSource AncestorType=RadioButton}}"/>
</StackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{StaticResource MahApps.Brushes.Gray7}" />
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Button.Border.MouseOver}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="{StaticResource MahApps.Brushes.Gray8}" />
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Button.Border.Focus}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Background" Value="{StaticResource MahApps.Brushes.Gray8}" />
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Button.Border}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="{StaticResource MahApps.Brushes.ThemeBackground}" />
<Setter Property="Foreground" Value="{StaticResource MahApps.Brushes.Gray10}" />
<Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.ThemeBackground}"/>
<Setter Property="FontWeight" Value="Normal"/>
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>