[prev in list] [next in list] [prev in thread] [next in thread] 

List:       elinks-dev
Subject:    [elinks-dev] [PATCH 07/10] Avoid underlining active text areas.
From:       yozohida () gmail ! com
Date:       2009-05-13 4:01:54
Message-ID: 1242187317-19338-8-git-send-email-yozohida () gmail ! com
[Download RAW message or body]

They already have underscores, so underlining them is redundant (and looks a
bit strange).
---
 src/viewer/text/link.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/viewer/text/link.c b/src/viewer/text/link.c
index 7cf3455..3b12c33 100644
--- a/src/viewer/text/link.c
+++ b/src/viewer/text/link.c
@@ -180,7 +180,8 @@ init_link_drawing(struct document_view *doc_view, struct link *link, int invert,
 	color_flags = (doc_opts->color_flags | COLOR_DECREASE_LIGHTNESS);
 	color_mode = doc_opts->color_mode;
 
-	if (doc_opts->active_link.underline)
+	/* avoid underlining text input areas which has underscores */
+	if (doc_opts->active_link.underline && link->type != LINK_FIELD)
 		template.attr |= SCREEN_ATTR_UNDERLINE;
 
 	/* keep forms in bold */
-- 
1.6.3

_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic