09-27-2020, 03:45 AM
(09-08-2020, 11:50 AM)MCC321 Wrote: Nice Theme! The only thing is Playnite was crashing when using the plugin IsThereAnyDeal from Lacro59 and I couldn't understand why. Finally I found out it was fine when I turned off the 2 notification option in the plugin settings. Sometimes there was some crash on startup sometimes not, even with the plugin off. I finally figured that Playnite was crashing each time Lacro59 released a new version of a plugin. So It was because of something related to the notification in the theme, and I found it! Here it is:I really like the changes that you made to the theme, can you show me how you achieved this? I mainly want to know how to
in the file MainPanel.xaml, line 203
<CheckBox x:Name="PART_ToggleNotifications"
WindowChrome.IsHitTestVisibleInChrome="True"
DockPanel.Dock="Right" Margin="8,12,0,0">
<CheckBox.Style>
<Style TargetType="ToggleButton">
<Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border Background="Transparent">
<Grid>
<TextBlock Text="" FontFamily="{StaticResource FontIcoFont}" FontSize="21"
Foreground="{TemplateBinding Foreground}"
HorizontalAlignment="Center"/>
<Border CornerRadius="3" Width="15" Height="15"
Margin="20,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Line 203 ---------------------------------------------------------> Background="{DinamicResource HighlightGlyphBrush}">
<TextBlock Text="{Api Notifications.Count}" FontSize="12"
Foreground="{DynamicResource TextBrush}"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Api Notifications.Count}" Value="0">
<Setter Property="Visibility" Value="Collapsed"/>
</DataTrigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
</Trigger>
</Style.Triggers>
</Style>
</CheckBox.Style>
</CheckBox>
Theres a fault in DinamicResource it should be DynamicResource
Everythings worked fine after
Heres some pictures
I Tweaked it a little
- have the title appear above the play button in the details view
- Change the background color of the currently selected item in details view
- Change the color of the icons (such as the calendar next to last played)