mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Update background color for alternating DataGrid rows in multiple XAML files for improved visibility
This commit is contained in:
@@ -50,30 +50,17 @@
|
||||
<UserControl.Styles>
|
||||
<Style Selector="DataGridRow:nth-child(2n)">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n) DataGridCell">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
<SolidColorBrush Color="#15FFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
<Grid RowDefinitions="Auto,*,Auto"
|
||||
Margin="12"
|
||||
|
||||
@@ -49,30 +49,17 @@
|
||||
<UserControl.Styles>
|
||||
<Style Selector="DataGridRow:nth-child(2n)">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n) DataGridCell">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
<SolidColorBrush Color="#15FFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
<TabControl>
|
||||
<TabItem IsVisible="False">
|
||||
|
||||
@@ -49,30 +49,17 @@
|
||||
<UserControl.Styles>
|
||||
<Style Selector="DataGridRow:nth-child(2n)">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n) DataGridCell">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
<SolidColorBrush Color="#15FFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
<Grid RowDefinitions="*, Auto"
|
||||
RowSpacing="8"
|
||||
|
||||
@@ -49,30 +49,17 @@
|
||||
<UserControl.Styles>
|
||||
<Style Selector="DataGridRow:nth-child(2n)">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n) DataGridCell">
|
||||
<Setter Property="Background">
|
||||
<SolidColorBrush Color="#0CFFFFFF" />
|
||||
<SolidColorBrush Color="#15FFFFFF" />
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):pointerover DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
<Style Selector="DataGridRow:nth-child(2n):selected DataGridCell">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
<TabControl>
|
||||
<TabItem IsVisible="{Binding !!InquiryData, Mode=OneWay}">
|
||||
|
||||
Reference in New Issue
Block a user