[gtk/dotted-lines: 6/9] Add missing overline color support
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dotted-lines: 6/9] Add missing overline color support
- Date: Wed, 31 Mar 2021 22:58:03 +0000 (UTC)
commit 8713aa911b749c6cfddbfa27011d59d622e141b7
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]