summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-12-21 16:28:10 (GMT)
committer Ole Loots <ole@monochrom.net>2012-12-21 16:28:10 (GMT)
commitdb356ce99f6a8a7ee0b50655654329ed3964b6dc (patch)
tree7b4e83c43d2f16e0e35e9f09b2b17944d7b2b0a7
parent9edb37cf6efc265ec7bc0f95ec7dc3656e750c2c (diff)
downloadnetsurf-mono/interactive-about_config.tar.gz
netsurf-mono/interactive-about_config.tar.bz2
Set colour style on text input directly (nsoptions_output_html_input)mono/interactive-about_config
-rw-r--r--desktop/options.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/desktop/options.c b/desktop/options.c
index 12468fb..2c7d40e 100644
--- a/desktop/options.c
+++ b/desktop/options.c
@@ -314,11 +314,10 @@ nsoption_output_value_html_input(struct option_entry_s *option,
((0x0000FF00 & *((colour *) option->p)) << 0) |
((0x00FF0000 & *((colour *) option->p)) >> 16);
slen = snprintf(string + pos, size - pos,
- "<input type=\"text\" name=\"%s\" value=\"%06x\"/>&nbsp;"
- "<span style=\"background-color: #%06x; color: #%06x; \">"
- "&nbsp;&nbsp;</span>",
- option->key, rgbcolour,
- rgbcolour, (~rgbcolour) & 0xffffff);
+ "<input style=\"color: #%06x; background-color: #%06x;\" "
+ "type=\"text\" name=\"%s\" value=\"%06x\"/>",
+ (~rgbcolour) & 0xffffff, rgbcolour,
+ option->key, rgbcolour);
break;
case OPTION_STRING: