瀏覽代碼

Fix selection bar (#4236)

Isaac Marovitz 3 年之前
父節點
當前提交
ee6e682ab4
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. 3 0
      Ryujinx.Ava/UI/Controls/GameGridView.axaml
  2. 3 3
      Ryujinx.Ava/UI/Controls/GameListView.axaml

+ 3 - 0
Ryujinx.Ava/UI/Controls/GameGridView.axaml

@@ -139,6 +139,9 @@
                 <Style Selector="ListBoxItem:pointerover /template/ ContentPresenter">
                     <Setter Property="Background" Value="{DynamicResource AppListHoverBackgroundColor}" />
                 </Style>
+                <Style Selector="ListBoxItem:selected /template/ Border#SelectionIndicator">
+                    <Setter Property="MinHeight" Value="{Binding $parent[UserControl].DataContext.GridItemSelectorSize}" />
+                </Style>
             </ListBox.Styles>
             <ListBox.ItemTemplate>
                 <DataTemplate>

+ 3 - 3
Ryujinx.Ava/UI/Controls/GameListView.axaml

@@ -137,12 +137,12 @@
                 <Style Selector="ListBoxItem:selected /template/ ContentPresenter">
                     <Setter Property="Background" Value="{DynamicResource AppListBackgroundColor}" />
                 </Style>
-                <Style Selector="ListBoxItem:selected /template/ Border#SelectionIndicator">
-                    <Setter Property="MinHeight" Value="100" />
-                </Style>
                 <Style Selector="ListBoxItem:pointerover /template/ ContentPresenter">
                     <Setter Property="Background" Value="{DynamicResource AppListHoverBackgroundColor}" />
                 </Style>
+                <Style Selector="ListBoxItem:selected /template/ Border#SelectionIndicator">
+                    <Setter Property="MinHeight" Value="{Binding $parent[UserControl].DataContext.ListItemSelectorSize}" />
+                </Style>
             </ListBox.Styles>
             <ListBox.ItemTemplate>
                 <DataTemplate>