plug-ins: Add compatibility notice to PSD export

Users have noted that legacy layer modes have better compatibility
when exporting PSDs and reopening them in Photoshop.
This patch adds a notice with that information to the PSD export GUI.
This commit is contained in:
Alx Sa 2023-03-15 02:17:49 +00:00
parent 6871a0cfc4
commit 7b5f241591
1 changed files with 21 additions and 0 deletions

View File

@ -2433,6 +2433,8 @@ save_dialog (GimpImage *image,
{
GtkWidget *dialog;
GtkWidget *duotone_notice;
GtkWidget *label;
gchar *text;
GtkWidget *profile_label;
GimpColorProfile *cmyk_profile;
GimpParasite *parasite = NULL;
@ -2655,6 +2657,25 @@ save_dialog (GimpImage *image,
"cmyk-frame",
NULL);
/* Compatibility Notice */
text = g_strdup_printf ("\n<b>%s</b>: %s",
_("Compatibility Notice"),
_("Legacy layer modes have been reported "
"to have better compatibility with Photoshop. "
"If you encounter display issues, consider "
"switching to those layer modes."));
label = gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
"compat-notice", "Compatibility Notice");
gtk_label_set_markup (GTK_LABEL (label), text);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_label_set_max_width_chars (GTK_LABEL (label), 50);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog),
"compat-notice", NULL);
g_free (text);
gtk_widget_show (dialog);
run = gimp_procedure_dialog_run (GIMP_PROCEDURE_DIALOG (dialog));