10-03-2020, 08:18 PM
(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:
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
Can you share your config please ?