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

91 lines
4.8 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Initialize -->
<Style TargetType="{x:Type DataGrid}"
BasedOn="{StaticResource MahApps.Styles.DataGrid.Aurora}"/>
<Style TargetType="DataGridColumnHeader"
BasedOn="{StaticResource MahApps.Styles.DataGridColumnHeader.Aurora}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="DataGridCell"
BasedOn="{StaticResource MahApps.Styles.DataGridCell.Aurora}">
<Setter Property="Padding" Value="4 0"/>
</Style>
<!-- Custom Style -->
<!--ListView-->
<Style x:Key="styleListViewItem" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Background" Value="WhiteSmoke"/>
</Style>
<Style x:Key="styleGridViewColumnHeader" TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="10,3,10,3"/>
</Style>
<Style x:Key="ListViewStyle" TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="Black"/>
</Style>
<Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="Moccasin"/>
</Style>
<!-- List Box -->
<Style x:Key="styleListBoxItem" TargetType="{x:Type ListBoxItem}">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Margin" Value="0"/>
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<ControlTemplate.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="True" />
<Condition Property="IsSelected" Value="False" />
</MultiTrigger.Conditions>
<!--<Setter Value="#FF454545" Property="Background" /> -->
<Setter Value="{DynamicResource AuroraVision.ListBoxItem.IsMouseOver.Background}" Property="Background" />
<Setter Value="{DynamicResource AuroraVision.ListBoxItem.IsMouseOver.BorderBrush}" Property="BorderBrush" />
<Setter Value="{DynamicResource AuroraVision.ListBoxItem.IsMouseOver.Foreground}" Property="Foreground"/>
</MultiTrigger>
<Trigger Property="IsSelected" Value="True">
<Setter Value="{DynamicResource AuroraVision.ListBox.Selected.Background}" Property="Background" />
<Setter Value="{DynamicResource AuroraVision.ListBox.Selected.Foreground}" Property="Foreground" />
<Setter Value="{DynamicResource AuroraVision.ListBox.Selected.BorderBrush}" Property="BorderBrush" />
<Setter Property="TextElement.FontWeight" Value="Bold" />
</Trigger>
</ControlTemplate.Triggers>
<Grid Margin="4 0 4 4">
<Border Background="{TemplateBinding Background}" SnapsToDevicePixels="True" />
<ContentPresenter Margin="8 5" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<!--<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="{DynamicResource AuroraVision.ListBoxItem.Selected.Background}" />
<Setter Property="Foreground" Value="White" />
<Setter Property="TextElement.FontWeight" Value="Bold" />
</Trigger>
</Style.Triggers>-->
</Style>
</ResourceDictionary>