widgets: enable live preview of selected text color

Resolves #5889

This patch adds true live update support to the Text tool's
Change Color of Selected Text feature. Now, as you adjust the color
in the color picker, the highlighted text in the canvas updates immediately.
This commit is contained in:
Gabriele Barbero 2025-05-04 23:14:21 +02:00
parent 9d9265f099
commit 65946bb640

View file

@ -251,6 +251,7 @@ gimp_text_style_editor_init (GimpTextStyleEditor *editor)
editor->color_button = gimp_color_panel_new (_("Change color of selected text"),
color,
GIMP_COLOR_AREA_FLAT, 20, 20);
gimp_color_button_set_update (GIMP_COLOR_BUTTON (editor->color_button), TRUE);
gimp_widget_set_fully_opaque (editor->color_button, TRUE);
g_object_unref (color);