[gimp] Bug 707745 - Selected text is hard to read in the text tool's on-canvas editor
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 707745 - Selected text is hard to read in the text tool's on-canvas editor
- Date: Thu, 13 Jul 2017 10:35:56 +0000 (UTC)
commit a223ba8f4003386deddd61529c119ee993b6ac14
Author: Michael Natterer <mitch gimp org>
Date: Thu Jul 13 12:34:54 2017 +0200
Bug 707745 - Selected text is hard to read in the text tool's on-canvas editor
Change the text selection to draw an outline around each selected
glyph. It looks just as ugly as before but at least keeps the text
readable regardless of its color.
app/tools/gimptexttool.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 2ee4ae1..f9a118e 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -866,7 +866,7 @@ gimp_text_tool_draw_selection (GimpDrawTool *draw_tool)
{
GimpTextTool *text_tool = GIMP_TEXT_TOOL (draw_tool);
GtkTextBuffer *buffer = GTK_TEXT_BUFFER (text_tool->buffer);
- GimpCanvasGroup *fill_group;
+ GimpCanvasGroup *group;
PangoLayout *layout;
gint offset_x;
gint offset_y;
@@ -876,8 +876,8 @@ gimp_text_tool_draw_selection (GimpDrawTool *draw_tool)
gint min, max;
gint i;
- fill_group = gimp_draw_tool_add_fill_group (draw_tool);
- gimp_canvas_item_set_highlight (GIMP_CANVAS_ITEM (fill_group), TRUE);
+ group = gimp_draw_tool_add_stroke_group (draw_tool);
+ gimp_canvas_item_set_highlight (GIMP_CANVAS_ITEM (group), TRUE);
gtk_text_buffer_get_selection_bounds (buffer, &sel_start, &sel_end);
@@ -894,7 +894,7 @@ gimp_text_tool_draw_selection (GimpDrawTool *draw_tool)
iter = pango_layout_get_iter (layout);
- gimp_draw_tool_push_group (draw_tool, fill_group);
+ gimp_draw_tool_push_group (draw_tool, group);
do
{
@@ -921,7 +921,7 @@ gimp_text_tool_draw_selection (GimpDrawTool *draw_tool)
rect.x += offset_x;
rect.y += offset_y;
- gimp_draw_tool_add_rectangle (draw_tool, TRUE,
+ gimp_draw_tool_add_rectangle (draw_tool, FALSE,
rect.x, rect.y,
rect.width, rect.height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]