|
|
@@ -10,7 +10,8 @@
|
|
|
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
|
d:DesignHeight="450"
|
|
|
d:DesignWidth="800"
|
|
|
- mc:Ignorable="d">
|
|
|
+ mc:Ignorable="d"
|
|
|
+ Focusable="True">
|
|
|
<UserControl.Resources>
|
|
|
<controls:BitmapArrayValueConverter x:Key="ByteImage" />
|
|
|
<MenuFlyout x:Key="GameContextMenu" Opened="MenuBase_OnMenuOpened">
|
|
|
@@ -113,8 +114,8 @@
|
|
|
<Style Selector="ListBoxItem">
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
<Setter Property="Margin" Value="5" />
|
|
|
- <Setter Property="CornerRadius" Value="5" />
|
|
|
- <Setter Property="Background" Value="{DynamicResource SystemAccentColorDark3}" />
|
|
|
+ <Setter Property="CornerRadius" Value="4" />
|
|
|
+ <Setter Property="Background" Value="{DynamicResource AppListBackgroundColor}" />
|
|
|
<Style.Animations>
|
|
|
<Animation Duration="0:0:0.7">
|
|
|
<KeyFrame Cue="0%">
|
|
|
@@ -132,27 +133,18 @@
|
|
|
</Animation>
|
|
|
</Style.Animations>
|
|
|
</Style>
|
|
|
+ <Style Selector="ListBoxItem:selected /template/ ContentPresenter">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource AppListBackgroundColor}" />
|
|
|
+ </Style>
|
|
|
+ <Style Selector="ListBoxItem:pointerover /template/ ContentPresenter">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource AppListHoverBackgroundColor}" />
|
|
|
+ </Style>
|
|
|
</ListBox.Styles>
|
|
|
<ListBox.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
<Grid>
|
|
|
- <Grid.Styles>
|
|
|
- <Style Selector="ui|SymbolIcon.small.icon">
|
|
|
- <Setter Property="FontSize" Value="15" />
|
|
|
- </Style>
|
|
|
- <Style Selector="ui|SymbolIcon.normal.icon">
|
|
|
- <Setter Property="FontSize" Value="19" />
|
|
|
- </Style>
|
|
|
- <Style Selector="ui|SymbolIcon.large.icon">
|
|
|
- <Setter Property="FontSize" Value="23" />
|
|
|
- </Style>
|
|
|
- <Style Selector="ui|SymbolIcon.huge.icon">
|
|
|
- <Setter Property="FontSize" Value="26" />
|
|
|
- </Style>
|
|
|
- </Grid.Styles>
|
|
|
<Border
|
|
|
- Margin="0"
|
|
|
- Padding="{Binding $parent[UserControl].DataContext.GridItemPadding}"
|
|
|
+ Margin="10"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Stretch"
|
|
|
Classes.huge="{Binding $parent[UserControl].DataContext.IsGridHuge}"
|
|
|
@@ -160,57 +152,41 @@
|
|
|
Classes.normal="{Binding $parent[UserControl].DataContext.IsGridMedium}"
|
|
|
Classes.small="{Binding $parent[UserControl].DataContext.IsGridSmall}"
|
|
|
ClipToBounds="True"
|
|
|
- CornerRadius="5">
|
|
|
- <Grid Margin="0">
|
|
|
+ CornerRadius="4">
|
|
|
+ <Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
<Image
|
|
|
Grid.Row="0"
|
|
|
- Margin="0"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Top"
|
|
|
Source="{Binding Icon, Converter={StaticResource ByteImage}}" />
|
|
|
- <StackPanel
|
|
|
+ <Panel
|
|
|
Grid.Row="1"
|
|
|
Height="50"
|
|
|
- Margin="5"
|
|
|
+ Margin="0 10 0 0"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Stretch"
|
|
|
IsVisible="{Binding $parent[UserControl].DataContext.ShowNames}">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
Text="{Binding TitleName}"
|
|
|
TextAlignment="Center"
|
|
|
TextWrapping="Wrap" />
|
|
|
- </StackPanel>
|
|
|
+ </Panel>
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
<ui:SymbolIcon
|
|
|
- Margin="5"
|
|
|
+ Margin="5,5,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Top"
|
|
|
- Classes.huge="{Binding $parent[UserControl].DataContext.IsGridHuge}"
|
|
|
- Classes.icon="true"
|
|
|
- Classes.large="{Binding $parent[UserControl].DataContext.IsGridLarge}"
|
|
|
- Classes.normal="{Binding $parent[UserControl].DataContext.IsGridMedium}"
|
|
|
- Classes.small="{Binding $parent[UserControl].DataContext.IsGridSmall}"
|
|
|
- Foreground="Yellow"
|
|
|
+ FontSize="16"
|
|
|
+ Foreground="{DynamicResource SystemAccentColor}"
|
|
|
IsVisible="{Binding Favorite}"
|
|
|
Symbol="StarFilled" />
|
|
|
- <ui:SymbolIcon
|
|
|
- Margin="5"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- VerticalAlignment="Top"
|
|
|
- Classes.huge="{Binding $parent[UserControl].DataContext.IsGridHuge}"
|
|
|
- Classes.icon="true"
|
|
|
- Classes.large="{Binding $parent[UserControl].DataContext.IsGridLarge}"
|
|
|
- Classes.normal="{Binding $parent[UserControl].DataContext.IsGridMedium}"
|
|
|
- Classes.small="{Binding $parent[UserControl].DataContext.IsGridSmall}"
|
|
|
- Foreground="Black"
|
|
|
- IsVisible="{Binding Favorite}"
|
|
|
- Symbol="Star" />
|
|
|
</Grid>
|
|
|
</DataTemplate>
|
|
|
</ListBox.ItemTemplate>
|