[bugzilla-gnome-org-extensions] Fix highlighting of "added" huinks



commit 50ad206e7be82b477180af5b9a2336b013f2687b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Sep 9 00:05:02 2009 -0400

    Fix highlighting of "added" huinks
    
    Fix the flag we were checking for when adding the CSS class and change
    the color to be more clearly green as opposed to a cyan that looked
    confusing with the "changed" blue.

 js/splinter.js   |    6 +++---
 web/splinter.css |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/splinter.js b/js/splinter.js
index cee4429..b627931 100644
--- a/js/splinter.js
+++ b/js/splinter.js
@@ -231,9 +231,9 @@ function addPatchFile(file) {
                          if ((flags & Patch.CHANGED) != 0)
                              oldStyle = newStyle = "changed-line";
                          else if ((flags & Patch.REMOVED) != 0)
-                         oldStyle = "removed-line";
-                         else if ((flags & Patch.ADDED_LINE) != 0)
-                         newStyle = "added-line";
+                             oldStyle = "removed-line";
+                         else if ((flags & Patch.ADDED) != 0)
+                             newStyle = "added-line";
 
                          if (oldText != null) {
                              tr.appendChild(EL("td", "old-line " + oldStyle,
diff --git a/web/splinter.css b/web/splinter.css
index b391a33..1f0a934 100644
--- a/web/splinter.css
+++ b/web/splinter.css
@@ -82,7 +82,7 @@ body {
 }
 
 .added-line {
-    background: #aaffcc;
+    background: #bbffbb;
 }
 
 .changed-line {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]