Skip to content

Commit

Permalink
GridView: Added library banners for Groupees and Legacy Games library…
Browse files Browse the repository at this point in the history
… plugin because Jeshibu was angry at me :(
  • Loading branch information
darklinkpower committed Apr 28, 2022
1 parent b0e2c30 commit 1fd1579
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/Constants.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@
<BitmapImage x:Key="RiotBannerBitmap" UriSource="{ThemeFile 'Images/Banners/317a5e2e-eac1-48bc-adb3-fb9e321afd3f.png'}" popt:Freeze="True" CacheOption="OnLoad" />
<BitmapImage x:Key="NintendoLibraryBannerBitmap" UriSource="{ThemeFile 'Images/Banners/e4ac81cb-1b1a-4ec9-8639-9a9633989a72.png'}" popt:Freeze="True" CacheOption="OnLoad" />
<BitmapImage x:Key="OculusLibraryBannerBitmap" UriSource="{ThemeFile 'Images/Banners/77346dd6-b0cc-4F7d-80f0-c1d138ccae58.png'}" popt:Freeze="True" CacheOption="OnLoad" />
<BitmapImage x:Key="LegacyGamesLibraryBannerBitmap" UriSource="{ThemeFile 'Images/Banners/34c3178f-6e1d-4e27-8885-99d4f031b168.png'}" popt:Freeze="True" CacheOption="OnLoad" />
<BitmapImage x:Key="GroupeesLibraryBannerBitmap" UriSource="{ThemeFile 'Images/Banners/42ff71aa-34dc-4b12-86b6-1328136c958f.png'}" popt:Freeze="True" CacheOption="OnLoad" />
<BitmapImage x:Key="UnknownLibraryBannerBitmap" UriSource="{ThemeFile 'Images/Banners/UnknownLibrary.png'}" popt:Freeze="True" CacheOption="OnLoad" />

</ResourceDictionary>
16 changes: 16 additions & 0 deletions source/DerivedStyles/GridViewItemTemplate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,22 @@
<Setter Property="Source" Value="{StaticResource OculusLibraryBannerBitmap}" />
<Setter Property="Visibility" Value="Visible" />
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="True" />
<Condition Binding="{Binding PluginId}" Value="34c3178f-6e1d-4e27-8885-99d4f031b168" />
</MultiDataTrigger.Conditions>
<Setter Property="Source" Value="{StaticResource LegacyGamesLibraryBannerBitmap}" />
<Setter Property="Visibility" Value="Visible" />
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="True" />
<Condition Binding="{Binding PluginId}" Value="42ff71aa-34dc-4b12-86b6-1328136c958f" />
</MultiDataTrigger.Conditions>
<Setter Property="Source" Value="{StaticResource GroupeesLibraryBannerBitmap}" />
<Setter Property="Visibility" Value="Visible" />
</MultiDataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1fd1579

Please sign in to comment.