-
-
Notifications
You must be signed in to change notification settings - Fork 5
Addition in a custom theme
Lacro59 edited this page Dec 14, 2022
·
5 revisions
You can see a example with https://github.com/Lacro59/playnite-defaultextend-theme.
Differents resources disponible with PluginSettings
The SourceName for the plugin is LibraryManagement
CustomOption | Type | Default | Description |
---|---|---|---|
EnableIntegrationFeatures | bool | true | Parameters to display or not the plugin feature icons list. |
EnableIntegrationAgeRatings | bool | true | Parameters to display or not the plugin age rating icons. |
CustomOption | Type | Default | Description |
---|---|---|---|
HasData | bool | false | Indicates if the game has data. |
DataCount | int | 0 | Count of feature icons |
DataList | List | List empty | details |
Integration of plugin elements with ContentControl
<StackPanel Visibility="{PluginStatus Plugin=<PluginId>, Status=Installed}">
</StackPanel>
If the item is not enabled in the plugin settings, it is collapsed.
<StackPanel Visibility="{Binding ElementName=<SourceName>_<ElementName>, Path=Visibility}">
</StackPanel>
<ContentControl x:Name="LibraryManagement_PluginFeaturesIconList" Height="obligatory" />
<ContentControl x:Name="LibraryManagement_PluginAgeRating" Height="obligatory" />
<ListBox ItemsSource="{PluginSettings Plugin=LibraryManagement, Path=DataList}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="0,2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Image Grid.Column="0" HorizontalAlignment="Center" Height="24" VerticalAlignment="Center" Width="24"
Source="{Binding IconBitmapImage}" ToolTip={Binding NameAssociated } />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>