summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/nsoption.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/utils/nsoption.c b/utils/nsoption.c
index 4e7bbbdd5..6985b3cb8 100644
--- a/utils/nsoption.c
+++ b/utils/nsoption.c
@@ -386,12 +386,17 @@ nsoption_output_value_html(struct nsoption_s *option,
rgbcolour = colour_rb_swap(option->value.c);
slen = snprintf(string + pos,
size - pos,
+ "<span style=\"font-family:Monospace;\">"
+ "#%06X"
+ "</span> "
"<span style=\"background-color: #%06x; "
- "color: #%06x; "
- "font-family:Monospace; \">#%06X</span>",
+ "border: 1px solid #%06x; "
+ "display: inline-block; "
+ "width: 1em; height: 1em;\">"
+ "</span>",
rgbcolour,
- colour_to_bw_furthest(rgbcolour),
- rgbcolour);
+ rgbcolour,
+ colour_to_bw_furthest(rgbcolour));
break;
case OPTION_STRING: