[gtk/dotted-lines: 1/2] Add missing overline color support
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dotted-lines: 1/2] Add missing overline color support
- Date: Wed, 31 Mar 2021 04:00:23 +0000 (UTC)
commit b8d93034738e9400d8f0bfd2321be8ac803f39c3
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 30 23:58:37 2021 -0400
Add missing overline color support
This was overlooked when overlines were added.
Without this, overlines will come out in the the
wrong color.
gtk/gskpango.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gskpango.c b/gtk/gskpango.c
index cfe868cb7a..861a3f0150 100644
--- a/gtk/gskpango.c
+++ b/gtk/gskpango.c
@@ -409,6 +409,11 @@ gsk_pango_renderer_prepare_run (PangoRenderer *renderer,
}
else
text_renderer_set_rgba (crenderer, PANGO_RENDER_PART_UNDERLINE, fg_rgba);
+
+ if (appearance->overline_rgba)
+ text_renderer_set_rgba (crenderer, PANGO_RENDER_PART_OVERLINE, appearance->overline_rgba);
+ else
+ text_renderer_set_rgba (crenderer, PANGO_RENDER_PART_OVERLINE, fg_rgba);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]