>From a9f392f5fa93fee859b5dcf6aa10b976cebf1ed0 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <ofour...@redhat.com>
Date: Fri, 30 Nov 2012 11:36:35 +0100
Subject: [PATCH] tools: adjust colors and CSS for show-svg-image

Signed-off-by: Olivier Fourdan <ofour...@redhat.com>
---
 tools/show-svg-image.c |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/tools/show-svg-image.c b/tools/show-svg-image.c
index 03b4c5d..fac8c45 100644
--- a/tools/show-svg-image.c
+++ b/tools/show-svg-image.c
@@ -37,10 +37,10 @@
 #include "libwacom.h"
 
 
-#define INACTIVE_COLOR		"#2d2d2d"
-#define ACTIVE_COLOR		"#ffffff"
-#define STROKE_COLOR		"#b4b4b4"
-#define DARK_COLOR		"#141414"
+#define INACTIVE_COLOR		"#ededed"
+#define ACTIVE_COLOR		"#729fcf"
+#define STROKE_COLOR		"#000000"
+#define DARK_COLOR		"#535353"
 #define BACK_COLOR		"#000000"
 
 /* Convenient struct to store our stuff around */
@@ -219,8 +219,9 @@ update_tablet (Tablet *tablet)
 	                    "      fill:    none !important;\n"
 	                    "    }\n",
 	                    "    .Button {\n"
-	                    "      stroke: ", STROKE_COLOR," !important;\n"
-	                    "      fill:   ", INACTIVE_COLOR," !important;\n"
+	                    "      stroke-width: 0.25;\n"
+	                    "      stroke: ", INACTIVE_COLOR, ";\n"
+	                    "      fill:   ", INACTIVE_COLOR, ";\n"
 	                    "    }\n",
 	                    NULL);
 	g_free (width);
@@ -231,8 +232,8 @@ update_tablet (Tablet *tablet)
 		if (button == tablet->active_button) {
 			data = g_strconcat (data,
 			                    "    .", class, " {\n"
-			                    "      stroke: ", STROKE_COLOR," !important;\n"
-			                    "      fill:   ", button == tablet->active_button ? ACTIVE_COLOR : INACTIVE_COLOR, " !important;\n"
+			                    "      stroke: ", ACTIVE_COLOR, " !important;\n"
+			                    "      fill:   ", ACTIVE_COLOR, " !important;\n"
 			                    "    }\n",
 			                    NULL);
 	    }
@@ -243,12 +244,16 @@ update_tablet (Tablet *tablet)
 	                    "      fill:    none !important;\n"
 	                    "    }\n",
 	                    "    .Label {\n"
-	                    "      stroke: none !important;\n"
-	                    "      fill:   ", BACK_COLOR, "  !important;\n"
+	                    "      stroke: none      !important;\n"
+	                    "      stroke-width: 0.1 !important;\n"
+	                    "      opacity:   .0     !important;\n"
+	                    "      font-size: .1     !important;\n"
+	                    "      fill:   ", BACK_COLOR,    " !important;\n"
 	                    "    }\n",
 	                    "    .TouchStrip,.TouchRing {\n"
+	                    "      stroke-width: 0.1   !important;\n"
 	                    "      stroke: ", INACTIVE_COLOR," !important;\n"
-	                    "      fill:   ", DARK_COLOR, "  !important;\n"
+	                    "      fill:   ", DARK_COLOR,    " !important;\n"
 	                    "    }\n",
 	                    "  </style>\n"
 	                    "  <xi:include href=\"", libwacom_get_layout_filename (tablet->device), "\"/>\n"
-- 
1.7.1

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to