mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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:
parent
9d9265f099
commit
65946bb640
1 changed files with 1 additions and 0 deletions
|
@ -251,6 +251,7 @@ gimp_text_style_editor_init (GimpTextStyleEditor *editor)
|
||||||
editor->color_button = gimp_color_panel_new (_("Change color of selected text"),
|
editor->color_button = gimp_color_panel_new (_("Change color of selected text"),
|
||||||
color,
|
color,
|
||||||
GIMP_COLOR_AREA_FLAT, 20, 20);
|
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);
|
gimp_widget_set_fully_opaque (editor->color_button, TRUE);
|
||||||
g_object_unref (color);
|
g_object_unref (color);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue