[vte] widget: Use lighter dashed underline for hyperlinks



commit ba0e1e589faceb8bfdd716790f595f733f698a0d
Author: Egmont Koblinger <egmont gmail com>
Date:   Thu Aug 31 21:31:58 2017 +0200

    widget: Use lighter dashed underline for hyperlinks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786912

 src/vte.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index ed752de..11e1515 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);
                                 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]