Skip to content

Commit

Permalink
feat: enable selected background for mod list
Browse files Browse the repository at this point in the history
As we now have the details panel for the selected mod, we can (and
should) re-enable the list item selection background
  • Loading branch information
fifty-six committed Sep 25, 2023
1 parent ab3f0cf commit bc98429
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Scarab/Views/ModListView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,14 @@
ItemsSource="{Binding FilteredItems}"
Margin="15 0">
<ListBox.Styles>
<!-- Remove the selected effect entirely -->
<!-- Change the selected color to a grey instead of blue -->
<Style Selector="ListBoxItem:selected /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}" />
<Setter Property="Background" Value="{DynamicResource ThemeBorderLowBrush}" />
</Style>
<Style Selector="ListBoxItem:selected > Border">
<Setter Property="Background" Value="{DynamicResource BorderCardBorderBrush}" />
</Style>
<!-- -->
<!-- ~1~ Remove the pointerover effect @1@ -->
<!-- <Style Selector="ListBoxItem:pointerover /template/ ContentPresenter"> -->
<!-- <Setter Property="Background" Value="Transparent" /> -->
<!-- <Setter Property="Foreground" Value="Transparent" /> -->
<!-- </Style> -->

<Style Selector="ListBoxItem">
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0 1" />
</Style>


</ListBox.Styles>

<ItemsControl.ItemTemplate>
Expand Down

0 comments on commit bc98429

Please sign in to comment.