summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2017-08-31 21:31:58 +0200
committerEgmont Koblinger <egmont@gmail.com>2017-08-31 21:31:58 +0200
commitba0e1e589faceb8bfdd716790f595f733f698a0d (patch)
tree401f88380df1f3cdbeb75ea75584ec5aeb4ce7f0
parentea132fc22bdad37de04dea38ff8f7a95d2d79d1b (diff)
downloadvte-ba0e1e589faceb8bfdd716790f595f733f698a0d.tar.gz
widget: Use lighter dashed underline for hyperlinks
https://bugzilla.gnome.org/show_bug.cgi?id=786912
-rw-r--r--src/vte.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vte.cc b/src/vte.cc
index ed752de4..11e15151 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8885,11 +8885,11 @@ VteTerminalPrivate::draw_cells(struct _vte_draw_text_request *items,
VTE_LINE_WIDTH,
&fg, VTE_DRAW_OPAQUE);
} else if (hyperlink) {
- for (double j = 0.125; j < columns; j += 0.5) {
+ for (double j = 1.0 / 6.0; j < columns; j += 0.5) {
_vte_draw_fill_rectangle(m_draw,
x + j * column_width,
y + row_height - 1,
- column_width * 0.25,
+ MAX(column_width / 6.0, 1.0),
1,
&fg, VTE_DRAW_OPAQUE);
}