336 lines
18 KiB
XML
336 lines
18 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<!-- Color Palette -->
|
|
<Color x:Key="BgDarkColor">#0F172A</Color>
|
|
<Color x:Key="SidebarBgColor">#090D16</Color>
|
|
<Color x:Key="CardBgColor">#1E293B</Color>
|
|
<Color x:Key="CardBorderColor">#334155</Color>
|
|
<Color x:Key="PrimaryAccentColor">#3B82F6</Color>
|
|
<Color x:Key="PrimaryAccentHoverColor">#60A5FA</Color>
|
|
<Color x:Key="TextPrimaryColor">#F8FAFC</Color>
|
|
<Color x:Key="TextSecondaryColor">#94A3B8</Color>
|
|
<Color x:Key="SuccessColor">#10B981</Color>
|
|
<Color x:Key="WarningColor">#F59E0B</Color>
|
|
<Color x:Key="DangerColor">#EF4444</Color>
|
|
|
|
<!-- SolidColorBrushes -->
|
|
<SolidColorBrush x:Key="BgDarkBrush" Color="{StaticResource BgDarkColor}" />
|
|
<SolidColorBrush x:Key="SidebarBgBrush" Color="{StaticResource SidebarBgColor}" />
|
|
<SolidColorBrush x:Key="CardBgBrush" Color="{StaticResource CardBgColor}" />
|
|
<SolidColorBrush x:Key="CardBorderBrush" Color="{StaticResource CardBorderColor}" />
|
|
<SolidColorBrush x:Key="PrimaryAccentBrush" Color="{StaticResource PrimaryAccentColor}" />
|
|
<SolidColorBrush x:Key="PrimaryAccentHoverBrush" Color="{StaticResource PrimaryAccentHoverColor}" />
|
|
<SolidColorBrush x:Key="TextPrimaryBrush" Color="{StaticResource TextPrimaryColor}" />
|
|
<SolidColorBrush x:Key="TextSecondaryBrush" Color="{StaticResource TextSecondaryColor}" />
|
|
<SolidColorBrush x:Key="SuccessBrush" Color="{StaticResource SuccessColor}" />
|
|
<SolidColorBrush x:Key="WarningBrush" Color="{StaticResource WarningColor}" />
|
|
<SolidColorBrush x:Key="DangerBrush" Color="{StaticResource DangerColor}" />
|
|
|
|
<!-- Default Font -->
|
|
<FontFamily x:Key="ModernFont">Segoe UI, Apple SD Gothic Neo, Malgun Gothic</FontFamily>
|
|
<FontFamily x:Key="IconFont">Segoe MDL2 Assets, Segoe Fluent Icons</FontFamily>
|
|
|
|
<!-- Global System Brushes Override (WPF DataGrid 기본 선택색 덮어쓰기) -->
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#2563EB" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="#FFFFFF" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#1E3A8A" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="#FFFFFF" />
|
|
|
|
<!-- Nav Button Style -->
|
|
<Style x:Key="NavButtonStyle" TargetType="RadioButton">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextSecondaryBrush}" />
|
|
<Setter Property="Height" Value="46" />
|
|
<Setter Property="Margin" Value="0,2,0,2" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="13.5" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Border x:Name="border"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="8"
|
|
Padding="12,0"
|
|
Margin="8,2">
|
|
<Grid>
|
|
<!-- Active Accent Indicator -->
|
|
<Rectangle x:Name="indicator"
|
|
Width="3.5"
|
|
Height="18"
|
|
HorizontalAlignment="Left"
|
|
Fill="{StaticResource PrimaryAccentBrush}"
|
|
RadiusX="2" RadiusY="2"
|
|
Visibility="Collapsed" />
|
|
<ContentPresenter Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
RecognizesAccessKey="False" />
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#1A2B4C" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#1E3A8A" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
<Setter TargetName="indicator" Property="Visibility" Value="Visible" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Modern Action Button -->
|
|
<Style x:Key="PrimaryButtonStyle" TargetType="Button">
|
|
<Setter Property="Background" Value="{StaticResource PrimaryAccentBrush}" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Padding" Value="16,8" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="btnBorder"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="6"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="btnBorder" Property="Background" Value="{StaticResource PrimaryAccentHoverBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="btnBorder" Property="Background" Value="#2563EB" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="btnBorder" Property="Background" Value="#334155" />
|
|
<Setter Property="Foreground" Value="#64748B" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="SecondaryButtonStyle" TargetType="Button">
|
|
<Setter Property="Background" Value="#334155" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
<Setter Property="FontWeight" Value="Medium" />
|
|
<Setter Property="Padding" Value="14,7" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="#475569" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="btnBorder"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="6"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="btnBorder" Property="Background" Value="#475569" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="btnBorder" Property="Background" Value="#1E293B" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Modern TextBox Style -->
|
|
<Style x:Key="ModernTextBoxStyle" TargetType="TextBox">
|
|
<Setter Property="Background" Value="#0F172A" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource CardBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="10,6" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
<Setter Property="CaretBrush" Value="{StaticResource PrimaryAccentBrush}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border x:Name="border"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="6">
|
|
<ScrollViewer x:Name="PART_ContentHost"
|
|
Margin="2"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsFocused" Value="True">
|
|
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource PrimaryAccentBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource PrimaryAccentHoverBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Modern Card Container Style -->
|
|
<Style x:Key="ModernCardStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="{StaticResource CardBgBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource CardBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="10" />
|
|
<Setter Property="Padding" Value="18" />
|
|
<Setter Property="Margin" Value="6" />
|
|
</Style>
|
|
|
|
<!-- ============================================================================== -->
|
|
<!-- Modern ComboBox & ComboBoxItem Style (선택칸 고대비 가독성 강화) -->
|
|
<!-- ============================================================================== -->
|
|
|
|
<Style TargetType="ComboBoxItem">
|
|
<Setter Property="Background" Value="#1E293B" />
|
|
<Setter Property="Foreground" Value="#F8FAFC" />
|
|
<Setter Property="Padding" Value="10,8" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBoxItem">
|
|
<Border x:Name="itemBorder"
|
|
Background="{TemplateBinding Background}"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="itemBorder" Property="Background" Value="#2563EB" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="itemBorder" Property="Background" Value="#1D4ED8" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="ComboBox">
|
|
<Setter Property="Background" Value="#0F172A" />
|
|
<Setter Property="Foreground" Value="#F8FAFC" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource CardBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="8,4" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
</Style>
|
|
|
|
<!-- ============================================================================== -->
|
|
<!-- Modern DataGrid, ColumnHeader, Row, Cell Styles (그리드 선택칸 고대비 가독성 보장) -->
|
|
<!-- ============================================================================== -->
|
|
|
|
<!-- 1. DataGrid Column Header (어두운 배경 + 밝고 선명한 텍스트) -->
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#090D16" />
|
|
<Setter Property="Foreground" Value="#E2E8F0" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Padding" Value="12,10" />
|
|
<Setter Property="BorderBrush" Value="#334155" />
|
|
<Setter Property="BorderThickness" Value="0,0,1,1" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
</Style>
|
|
|
|
<!-- 2. DataGrid Cell (선택 시 텍스트 명확화) -->
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="Padding" Value="10,8" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="DataGridCell">
|
|
<Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter VerticalAlignment="Center" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#2563EB" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 3. DataGrid Row (호버 및 선택 시 진한 파란색 배경 + 순백색 글자 강제) -->
|
|
<Style TargetType="DataGridRow">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="#F8FAFC" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="12.5" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#1E3A8A" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#2563EB" />
|
|
<Setter Property="Foreground" Value="#FFFFFF" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 4. Global Modern DataGrid Style -->
|
|
<Style x:Key="ModernDataGridStyle" TargetType="DataGrid">
|
|
<Setter Property="Background" Value="{StaticResource CardBgBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource CardBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Foreground" Value="#F8FAFC" />
|
|
<Setter Property="RowBackground" Value="#1E293B" />
|
|
<Setter Property="AlternatingRowBackground" Value="#162032" />
|
|
<Setter Property="GridLinesVisibility" Value="Horizontal" />
|
|
<Setter Property="HorizontalGridLinesBrush" Value="#2D3748" />
|
|
<Setter Property="VerticalGridLinesBrush" Value="Transparent" />
|
|
<Setter Property="AutoGenerateColumns" Value="False" />
|
|
<Setter Property="CanUserAddRows" Value="False" />
|
|
<Setter Property="CanUserResizeRows" Value="False" />
|
|
<Setter Property="HeadersVisibility" Value="Column" />
|
|
<Setter Property="SelectionMode" Value="Single" />
|
|
<Setter Property="FontFamily" Value="{StaticResource ModernFont}" />
|
|
<Setter Property="FontSize" Value="12.5" />
|
|
</Style>
|
|
|
|
<!-- CheckBox Style for DataGrid Selection -->
|
|
<Style TargetType="CheckBox">
|
|
<Setter Property="Foreground" Value="#F8FAFC" />
|
|
<Setter Property="FontSize" Value="13" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|