From 4b6b926dbbb8f76c0cf50eae78d7b530d3e0ed7b Mon Sep 17 00:00:00 2001
From: Gehad elrobey <gehadelro...@gmail.com>
Date: Wed, 17 Sep 2014 13:22:48 +0300
Subject: [PATCH 2/2] HTML: Cursor is on top of graph tooltip

-change the color of the depth graph slightly to be more readable.
-change the tooltip of the depth graph to NW-corner of the cursor.
-change the opacity of the tooltip for readability.

Fixes #724

Signed-off-by: Gehad elrobey <gehadelro...@gmail.com>
---
 theme/jquery.jqplot.css | 2 +-
 theme/list_lib.js       | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/theme/jquery.jqplot.css b/theme/jquery.jqplot.css
index 2810d2b..44ef6a5 100644
--- a/theme/jquery.jqplot.css
+++ b/theme/jquery.jqplot.css
@@ -210,7 +210,7 @@ table.jqplot-cursor-tooltip {
     border: 1px solid #cccccc;
     font-size: 0.75em;
     white-space: nowrap;
-    background: rgba(208,208,208,0.5);
+    background: rgba(208,208,208,0.9);
     padding: 1px;
 }
 
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 3c9f3e0..725b5c8 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -1118,6 +1118,7 @@ function canvas_draw()
 				 },
 				 highlighter : {
 					 show : true,
+					 tooltipLocation: null,
 					 tooltipContentEditor: function(str, seriesIndex, pointIndex, jqPlot) {
 						if(seriesIndex===2)
 						return items[dive_id].events[pointIndex].name;
@@ -1132,8 +1133,8 @@ function canvas_draw()
 				 },
 				 series :[
 					 {
-						 color : 'rgba(35,58,58,.6)',
-						 negativeColor : 'rgba(35,58,58,.6)',
+						 color : 'rgba(75,98,98,.6)',
+						 negativeColor : 'rgba(75,98,98,.6)',
 						 showMarker : true,
 						 showLine : true,
 						 fill : true,
-- 
1.9.1

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to