Skip to content

Commit

Permalink
GridViewConverter: Add indication to notification message and setting…
Browse files Browse the repository at this point in the history
…s to increase Grid View Details Panel width
  • Loading branch information
darklinkpower committed Dec 22, 2024
1 parent d5424ed commit 47394fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Please restart to apply the changes.</sys:String>

Please restart to apply the changes.</sys:String>
<sys:String x:Key="LOCThemeDetailsToGridConverter_ThemeVersionNotSupported">Version {0} of theme "{1}" is not supported.</sys:String>
<sys:String x:Key="LOCThemeDetailsToGridConverter_ReminderIncreasePanelWidth">If you haven't already, remember to increase the Grid View details panel width in Playnite Settings to ensure the layout displays correctly!</sys:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ private void ConvertDetailsToGrid(ExtensionManifest manifest, string activeTheme
return;
}

PlayniteApi.Dialogs.ShowMessage(
string.Format(ResourceProvider.GetString("LOCThemeDetailsToGridConverter_ConvertSuccessMessage"), manifest.Name),
messagesCaption);
var notificationString = $"{string.Format(ResourceProvider.GetString("LOCThemeDetailsToGridConverter_ConvertSuccessMessage"), manifest.Name)}"
+ $"\n\n{ResourceProvider.GetString("LOCThemeDetailsToGridConverter_ReminderIncreasePanelWidth")}"
+ $"\n\n{ResourceProvider.GetString("LOCMenuPlayniteSettingsTitle")} -> {ResourceProvider.GetString("LOCSettingsAppearanceLabel")} -> {ResourceProvider.GetString("LOCSettingsLayoutLabel")} -> {ResourceProvider.GetString("LOCSettingsGridViewDetailsPosition")} -> {ResourceProvider.GetString("LOCWidth")}";
PlayniteApi.Dialogs.ShowMessage(notificationString, messagesCaption);
}

private bool IsNewContentValid(string gridViewNewContent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
Margin="0,10,0,0"
IsChecked="{Binding Settings.ConvertStardustLegacy}"/>
</StackPanel>


<TextBlock Margin="0,20,0,0" Text="{DynamicResource LOCThemeDetailsToGridConverter_ReminderIncreasePanelWidth}" Foreground="Red"
TextWrapping="Wrap"
FontWeight="Medium" FontSize="16" />
</StackPanel>
</ScrollViewer>
</UserControl>

0 comments on commit 47394fe

Please sign in to comment.