>From 516bf02a63d444766625e131ba0fac6e44804599 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <ofour...@redhat.com>
Date: Fri, 30 Nov 2012 11:18:43 +0100
Subject: [PATCH 3/3] tools: add leaders to CSS
and adjust CSS to differentiate leaders from regular buttons.
Signed-off-by: Olivier Fourdan <ofour...@redhat.com>
---
tools/show-svg-image.c | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/tools/show-svg-image.c b/tools/show-svg-image.c
index 01a7b13..5831888 100644
--- a/tools/show-svg-image.c
+++ b/tools/show-svg-image.c
@@ -1,5 +1,5 @@
/*
- * Copyright ?? 2012 Red Hat, Inc.
+ * Copyright © 2012 Red Hat, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without
@@ -192,8 +192,13 @@ update_tablet (Tablet *tablet)
" xmlns:xi=\"http://www.w3.org/2001/XInclude\"\n"
" width=\"", width, "\"\n"
" height=\"", height, "\">\n"
- " <style type=\"text/css\">\n"
- " * {\n"
+ " <style type=\"text/css\">\n",
+ " .Leader {\n"
+ " stroke-width: .5 !important;\n"
+ " stroke: ", INACTIVE_COLOR, ";\n"
+ " fill: none !important;\n"
+ " }\n",
+ " .Button {\n"
" stroke: ", STROKE_COLOR," !important;\n"
" fill: ", INACTIVE_COLOR," !important;\n"
" }\n",
@@ -213,8 +218,10 @@ update_tablet (Tablet *tablet)
}
}
- /* Hide the existing labels */
data = g_strconcat (data,
+ " .Leader {\n"
+ " fill: none !important;\n"
+ " }\n",
" .Label {\n"
" stroke: none !important;\n"
" fill: ", BACK_COLOR, " !important;\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