mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add alternating row colors and hover effects to DataGrid in DeviceList.axaml for improved visibility
This commit is contained in:
@@ -38,6 +38,19 @@
|
|||||||
SelectedItem="{Binding SelectedDevice, Mode=TwoWay}"
|
SelectedItem="{Binding SelectedDevice, Mode=TwoWay}"
|
||||||
ColumnHeaderHeight="32">
|
ColumnHeaderHeight="32">
|
||||||
<DataGrid.Styles>
|
<DataGrid.Styles>
|
||||||
|
<Style Selector="DataGridRow:nth-child(2n)">
|
||||||
|
<Setter Property="Background">
|
||||||
|
<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):selected">
|
||||||
|
<Setter Property="Background"
|
||||||
|
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
|
||||||
|
</Style>
|
||||||
<Style Selector="DataGridCell">
|
<Style Selector="DataGridCell">
|
||||||
<Setter Property="Margin"
|
<Setter Property="Margin"
|
||||||
Value="4,0" />
|
Value="4,0" />
|
||||||
|
|||||||
Reference in New Issue
Block a user