From 5ebef683d1deefe2fa455a17b0e6fa2dfc072b38 Mon Sep 17 00:00:00 2001 From: Hanno Schwalm Date: Sat, 4 Jul 2026 16:58:06 +0200 Subject: [PATCH] Blue mapping warning If blue_mapping was still switched on from very old edits we at least want a warning. --- src/iop/colorin.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/iop/colorin.c b/src/iop/colorin.c index b1214f67910c..7b5c658ef9d8 100644 --- a/src/iop/colorin.c +++ b/src/iop/colorin.c @@ -2037,6 +2037,20 @@ static void update_profile_list(dt_iop_module_t *self) } } +static void _preview_pipe_finished_callback(gpointer instance, dt_iop_module_t *self) +{ + if(!self->gui_data) return; + dt_iop_colorin_params_t *p = self->params; + const gboolean on = p->blue_mapping; + dt_iop_set_module_trouble_message + (self, + on ? _("blue mapping") : NULL, + on ? _("the blue mapping mode has been deprecated since very long and has been removed.\n" + "reset to defaults or switch to any colorin profile and check results. minimal\n" + "visual differences might be possible.") : NULL, + on ? "blue mode detected in colorin module" : NULL); +} + void gui_init(dt_iop_module_t *self) { // pthread_mutex_lock(&darktable.plugin_threadsafe); @@ -2071,6 +2085,7 @@ void gui_init(dt_iop_module_t *self) g->clipping_combobox = dt_bauhaus_combobox_from_params(self, "normalize"); gtk_widget_set_tooltip_text(g->clipping_combobox, _("confine Lab values to gamut of RGB color space")); + DT_CONTROL_SIGNAL_HANDLE(DT_SIGNAL_DEVELOP_PREVIEW_PIPE_FINISHED, _preview_pipe_finished_callback); } void gui_cleanup(dt_iop_module_t *self)