class: ImageEditView
authorClaus Gittinger <cg@exept.de>
Tue, 08 Jul 2014 23:22:58 +0200
changeset 4646 b1faa362e0ac
parent 4645 bda038fdd045
child 4647 caf78f4a0548
class: ImageEditView changed: #makeSlightlyBrighter (send #lightGray instead of #lightGrey) #makeSlightlyDarker (send #darkGray instead of #darkGrey) #performSpecialOperationOn:withColor: (send #gray instead of #grey)
ImageEditView.st
--- a/ImageEditView.st	Tue Jul 08 23:22:21 2014 +0200
+++ b/ImageEditView.st	Tue Jul 08 23:22:58 2014 +0200
@@ -1598,16 +1598,16 @@
         pixelAction := [:x :y :clr | Color grey:(clr greyIntensity)].
     ].
     operation == #greyed ifTrue:[
-        pixelAction := [:x :y :clr | clr blendWith:Color grey].
+        pixelAction := [:x :y :clr | clr blendWith:Color gray].
     ].
     operation == #greyPattern ifTrue:[
         pixelAction := [:x :y :clr | x odd == y even 
-                                        ifTrue:[Color grey] 
+                                        ifTrue:[Color gray] 
                                         ifFalse:[clr]].
     ].
     operation == #unmaskedGreyPattern ifTrue:[
         pixelAction := [:x :y :clr | x odd == y even 
-                                        ifTrue:[self image maskAtX:x y:y put:1. Color grey] 
+                                        ifTrue:[self image maskAtX:x y:y put:1. Color gray] 
                                         ifFalse:[clr]].
     ].
 
@@ -1975,9 +1975,9 @@
 
 makeSlightlyBrighter
     ^ self makeNewColorMapByMapping:[:clr | 
-                                        clr brightness > Color lightGrey brightness
+                                        clr brightness > Color lightGray brightness
                                             ifTrue:[ clr blendWith:Color white ] 
-                                            ifFalse:[ clr blendWith:Color lightGrey ]
+                                            ifFalse:[ clr blendWith:Color lightGray ]
                                     ].
 
     "Created: / 24-11-2010 / 11:08:18 / cg"
@@ -1985,9 +1985,9 @@
 
 makeSlightlyDarker
     ^ self makeNewColorMapByMapping:[:clr | 
-                                        clr brightness < Color darkGrey brightness
+                                        clr brightness < Color darkGray brightness
                                             ifTrue:[ clr blendWith:Color black ] 
-                                            ifFalse:[ clr blendWith:Color darkGrey ]
+                                            ifFalse:[ clr blendWith:Color darkGray ]
                                     ].
 
     "Created: / 24-11-2010 / 11:08:08 / cg"
@@ -2794,11 +2794,11 @@
 !ImageEditView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.261 2014-06-22 09:09:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.262 2014-07-08 21:22:58 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.261 2014-06-22 09:09:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.262 2014-07-08 21:22:58 cg Exp $'
 ! !