exchanged red/green colors.
authorClaus Gittinger <cg@exept.de>
Wed, 07 Jul 1999 15:01:09 +0200
changeset 2240 eb2688b9cf45
parent 2239 2540ede3681d
child 2241 135c9d26a697
exchanged red/green colors.
DiffTextView.st
DiffTxtV.st
--- a/DiffTextView.st	Wed Jul 07 14:26:03 1999 +0200
+++ b/DiffTextView.st	Wed Jul 07 15:01:09 1999 +0200
@@ -49,8 +49,15 @@
 
     and it will show the differences side-by-side.
 
-    For a real world application, 
-    see the ChangesBrowsers `compare' function.
+    The colors mean:
+        red             - removed
+        green           - added
+        blue            - changed
+        light-blue        changed, but not really (i.e. spaces only)
+
+    For a real world application and use of this widget, 
+    see the ChangesBrowsers `compare', 
+    or the browsers 'compare with repository' functions.
 
     [see also:]
         TextView EditTextView Diff3TextView
@@ -220,11 +227,11 @@
     showSeparators := false.
 
     (useColors := device hasColors) ifTrue:[
-        addedColor := Color black.
-        addedBgColor := Color green.
+        addedColor := Color white.
+        addedBgColor := Color red.
 
-        removedColor := Color white.
-        removedBgColor := Color red.
+        removedColor := Color black.
+        removedBgColor := Color green.
 
         changedColor := Color white.
         changedBgColor := Color blue.
@@ -487,4 +494,4 @@
 !DiffTextView class methodsFor:'documentation'!
 
 version
-^ '$Header: /cvs/stx/stx/libtool/DiffTextView.st,v 1.23 1999-05-05 14:31:06 cg Exp $'! !
+^ '$Header: /cvs/stx/stx/libtool/DiffTextView.st,v 1.24 1999-07-07 13:01:09 cg Exp $'! !
--- a/DiffTxtV.st	Wed Jul 07 14:26:03 1999 +0200
+++ b/DiffTxtV.st	Wed Jul 07 15:01:09 1999 +0200
@@ -49,8 +49,15 @@
 
     and it will show the differences side-by-side.
 
-    For a real world application, 
-    see the ChangesBrowsers `compare' function.
+    The colors mean:
+        red             - removed
+        green           - added
+        blue            - changed
+        light-blue        changed, but not really (i.e. spaces only)
+
+    For a real world application and use of this widget, 
+    see the ChangesBrowsers `compare', 
+    or the browsers 'compare with repository' functions.
 
     [see also:]
         TextView EditTextView Diff3TextView
@@ -220,11 +227,11 @@
     showSeparators := false.
 
     (useColors := device hasColors) ifTrue:[
-        addedColor := Color black.
-        addedBgColor := Color green.
+        addedColor := Color white.
+        addedBgColor := Color red.
 
-        removedColor := Color white.
-        removedBgColor := Color red.
+        removedColor := Color black.
+        removedBgColor := Color green.
 
         changedColor := Color white.
         changedBgColor := Color blue.
@@ -487,4 +494,4 @@
 !DiffTextView class methodsFor:'documentation'!
 
 version
-^ '$Header: /cvs/stx/stx/libtool/Attic/DiffTxtV.st,v 1.23 1999-05-05 14:31:06 cg Exp $'! !
+^ '$Header: /cvs/stx/stx/libtool/Attic/DiffTxtV.st,v 1.24 1999-07-07 13:01:09 cg Exp $'! !