From 47394fedbb3783c5fa3dc424afc1ca47e7689cd4 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 21 Dec 2024 20:37:21 -0600 Subject: [PATCH] GridViewConverter: Add indication to notification message and settings to increase Grid View Details Panel width --- .../Localization/en_US.xaml | 1 + .../ThemesDetailsViewToGridViewConverter.cs | 7 ++++--- .../ThemesDetailsViewToGridViewConverterSettingsView.xaml | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/source/Generic/ThemesDetailsViewToGridViewConverter/Localization/en_US.xaml b/source/Generic/ThemesDetailsViewToGridViewConverter/Localization/en_US.xaml index 84032143da..7f8fb97d18 100644 --- a/source/Generic/ThemesDetailsViewToGridViewConverter/Localization/en_US.xaml +++ b/source/Generic/ThemesDetailsViewToGridViewConverter/Localization/en_US.xaml @@ -9,4 +9,5 @@ Please restart to apply the changes. Please restart to apply the changes. Version {0} of theme "{1}" is not supported. + If you haven't already, remember to increase the Grid View details panel width in Playnite Settings to ensure the layout displays correctly! \ No newline at end of file diff --git a/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverter.cs b/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverter.cs index 3e58144fe9..4ed7e2ff75 100644 --- a/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverter.cs +++ b/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverter.cs @@ -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) diff --git a/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverterSettingsView.xaml b/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverterSettingsView.xaml index 5506a27deb..af00c50523 100644 --- a/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverterSettingsView.xaml +++ b/source/Generic/ThemesDetailsViewToGridViewConverter/ThemesDetailsViewToGridViewConverterSettingsView.xaml @@ -34,7 +34,10 @@ Margin="0,10,0,0" IsChecked="{Binding Settings.ConvertStardustLegacy}"/> - + + \ No newline at end of file