JJServiceManager/Views/Styles.xaml

68 lines
3.2 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- 공통 버튼 -->
<Style TargetType="Button">
<Setter Property="Padding" Value="10,4"/>
<Setter Property="Margin" Value="3"/>
<Setter Property="MinWidth" Value="64"/>
<Setter Property="MinHeight" Value="28"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Background" Value="#FFFFFF"/>
<Setter Property="BorderBrush" Value="#9E9E9E"/>
</Style>
<!-- 위험 작업 버튼 (Windows 종료/재시작) -->
<Style x:Key="DangerButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Background" Value="#FFEBEE"/>
<Setter Property="BorderBrush" Value="#E57373"/>
<Setter Property="Foreground" Value="#B71C1C"/>
</Style>
<!-- 서비스 목록의 작은 버튼 -->
<Style x:Key="RowButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="MinWidth" Value="58"/>
<Setter Property="MinHeight" Value="26"/>
<Setter Property="Padding" Value="6,2"/>
<Setter Property="Margin" Value="2,0"/>
</Style>
<!-- 토글 버튼 (켬/끔 스위치) -->
<Style x:Key="ToggleSwitch" TargetType="CheckBox">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<StackPanel Orientation="Horizontal" Background="Transparent">
<Border x:Name="Track" Width="46" Height="24" CornerRadius="12" Background="#BDBDBD">
<Ellipse x:Name="Knob" Width="18" Height="18" Fill="White" HorizontalAlignment="Left" Margin="3,0"/>
</Border>
<TextBlock x:Name="Lbl" Text="끔" Width="22" Margin="8,0,0,0" VerticalAlignment="Center" Foreground="#616161"/>
</StackPanel>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Track" Property="Background" Value="#2E7D32"/>
<Setter TargetName="Knob" Property="HorizontalAlignment" Value="Right"/>
<Setter TargetName="Lbl" Property="Text" Value="켬"/>
<Setter TargetName="Lbl" Property="Foreground" Value="#2E7D32"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- 구역 제목 -->
<Style x:Key="SectionTitle" TargetType="TextBlock">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Margin" Value="4,6,4,4"/>
<Setter Property="Foreground" Value="#155E75"/>
</Style>
</ResourceDictionary>