netsurf: branch master updated. release/3.0-151-g44f91c9

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Tue May 28 22:16:07 BST 2013


Gitweb links:

...log http://git.netsurf-browser.org/netsurf.git/shortlog/44f91c9fc8befb67211949008121cb0eae6de562
...commit http://git.netsurf-browser.org/netsurf.git/commit/44f91c9fc8befb67211949008121cb0eae6de562
...tree http://git.netsurf-browser.org/netsurf.git/tree/44f91c9fc8befb67211949008121cb0eae6de562

The branch, master has been updated
       via  44f91c9fc8befb67211949008121cb0eae6de562 (commit)
       via  4de556b6f5206884d14cdca30c1816605fd8213f (commit)
      from  42bbc16fa87cd0e5f11cf41f776ad5700de0a167 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=44f91c9fc8befb67211949008121cb0eae6de562
commit 44f91c9fc8befb67211949008121cb0eae6de562
Author: Michael Drake <tlsa at netsurf-browser.org>
Commit: Michael Drake <tlsa at netsurf-browser.org>

    Ensure colour values around #888888 can be read in HTML output.

diff --git a/utils/nsoption.c b/utils/nsoption.c
index d64adec..41a4d57 100644
--- a/utils/nsoption.c
+++ b/utils/nsoption.c
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "desktop/plot_style.h"
 #include "utils/errors.h"
 #include "utils/log.h"
 #include "utils/utils.h"
@@ -324,7 +325,7 @@ nsoption_output_value_html(struct nsoption_s *option,
 				"color: #%06x; "
 				"font-family:Monospace; \">#%06X</span>",
 				rgbcolour,
-				(~rgbcolour) & 0xffffff,
+				colour_to_bw_furthest(rgbcolour),
 				rgbcolour);
 		break;
 


commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=4de556b6f5206884d14cdca30c1816605fd8213f
commit 4de556b6f5206884d14cdca30c1816605fd8213f
Author: Michael Drake <tlsa at netsurf-browser.org>
Commit: Michael Drake <tlsa at netsurf-browser.org>

    Ugly rules to style config page.

diff --git a/!NetSurf/Resources/internal.css,f79 b/!NetSurf/Resources/internal.css,f79
index 819c19f..96ea65f 100644
--- a/!NetSurf/Resources/internal.css,f79
+++ b/!NetSurf/Resources/internal.css,f79
@@ -164,15 +164,34 @@ body#dirlist span.size + span.size {
  * configuration listing style 
  */
 
-body#configlist table.config th {
-	text-align: left; }
+body#configlist table.config {
+	border-spacing: 0; }
+
+body#configlist table.config tr:nth-child(2n-1) {
+	background: #eee; }
 
-body#configlist table.config td {
+body#configlist table.config tr:first-child th {
+	text-align: left;
+	font-weight: bold;
+	font-family: sans-serif;
+	background: #ddd; }
+
+body#configlist table.config tr th {
+	text-align: left;
+	font-weight: normal;
+	font-family: monospace; }
+
+body#configlist table.config td, body#configlist table.config th {
 	padding-left: 1em; }
 
-body#configlist table.config td + td {
+body#configlist table.config tr *:nth-child(3) {
 	padding-left: 3em; }
 
+body#configlist table.config tr *:nth-child(4) {
+	padding-left: 3em;
+	font-family: monospace;
+	padding-right: 1em; }
+
 body#configlist .null-content {
         font-style: italic; }
 


-----------------------------------------------------------------------

Summary of changes:
 !NetSurf/Resources/internal.css,f79 |   27 +++++++++++++++++++++++----
 utils/nsoption.c                    |    3 ++-
 2 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/!NetSurf/Resources/internal.css,f79 b/!NetSurf/Resources/internal.css,f79
index 819c19f..96ea65f 100644
--- a/!NetSurf/Resources/internal.css,f79
+++ b/!NetSurf/Resources/internal.css,f79
@@ -164,15 +164,34 @@ body#dirlist span.size + span.size {
  * configuration listing style 
  */
 
-body#configlist table.config th {
-	text-align: left; }
+body#configlist table.config {
+	border-spacing: 0; }
+
+body#configlist table.config tr:nth-child(2n-1) {
+	background: #eee; }
 
-body#configlist table.config td {
+body#configlist table.config tr:first-child th {
+	text-align: left;
+	font-weight: bold;
+	font-family: sans-serif;
+	background: #ddd; }
+
+body#configlist table.config tr th {
+	text-align: left;
+	font-weight: normal;
+	font-family: monospace; }
+
+body#configlist table.config td, body#configlist table.config th {
 	padding-left: 1em; }
 
-body#configlist table.config td + td {
+body#configlist table.config tr *:nth-child(3) {
 	padding-left: 3em; }
 
+body#configlist table.config tr *:nth-child(4) {
+	padding-left: 3em;
+	font-family: monospace;
+	padding-right: 1em; }
+
 body#configlist .null-content {
         font-style: italic; }
 
diff --git a/utils/nsoption.c b/utils/nsoption.c
index d64adec..41a4d57 100644
--- a/utils/nsoption.c
+++ b/utils/nsoption.c
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "desktop/plot_style.h"
 #include "utils/errors.h"
 #include "utils/log.h"
 #include "utils/utils.h"
@@ -324,7 +325,7 @@ nsoption_output_value_html(struct nsoption_s *option,
 				"color: #%06x; "
 				"font-family:Monospace; \">#%06X</span>",
 				rgbcolour,
-				(~rgbcolour) & 0xffffff,
+				colour_to_bw_furthest(rgbcolour),
 				rgbcolour);
 		break;
 


-- 
NetSurf Browser



More information about the netsurf-commits mailing list