diff options
author | Ole Loots <ole@monochrom.net> | 2012-12-21 17:28:10 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-12-21 17:28:10 +0100 |
commit | db356ce99f6a8a7ee0b50655654329ed3964b6dc (patch) | |
tree | 7b4e83c43d2f16e0e35e9f09b2b17944d7b2b0a7 /desktop/options.c | |
parent | 9edb37cf6efc265ec7bc0f95ec7dc3656e750c2c (diff) | |
download | netsurf-db356ce99f6a8a7ee0b50655654329ed3964b6dc.tar.gz netsurf-db356ce99f6a8a7ee0b50655654329ed3964b6dc.tar.bz2 |
Set colour style on text input directly (nsoptions_output_html_input)mono/interactive-about_config
Diffstat (limited to 'desktop/options.c')
-rw-r--r-- | desktop/options.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/desktop/options.c b/desktop/options.c index 12468fb84..2c7d40e91 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\"/> " - "<span style=\"background-color: #%06x; color: #%06x; \">" - " </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: |