#OTHER by stefan
authorStefan Vogel <sv@exept.de>
Wed, 20 Jul 2016 11:35:17 +0200
changeset 5163 955f893d03f2
parent 5162 696af8504423
child 5164 ea62d7ad1bf9
#OTHER by stefan use #blackColor and #whiteColor form device instead of (Color black) and (Color white)
ImageEditView.st
--- a/ImageEditView.st	Wed Jul 20 11:35:02 2016 +0200
+++ b/ImageEditView.st	Wed Jul 20 11:35:17 2016 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1997 by eXept Software AG
 	      All Rights Reserved
@@ -396,8 +398,7 @@
 !ImageEditView methodsFor:'drawing'!
 
 drawFrame
-
-    self paint:Color black.
+    self paint:self blackColor.
     self lineWidth: (magnification x//3 min: 3).
     self displayRectangle: ((0@0) extent:(image extent * magnification) + margin).
     self lineWidth:1.
@@ -2039,7 +2040,7 @@
     ^ self makeNewColorMapByMapping:
         [:clr | 
             clr brightness > Color lightGray brightness
-                ifTrue:[ clr blendWith:Color white ] 
+                ifTrue:[ clr blendWith:self whiteColor ] 
                 ifFalse:[ clr blendWith:Color lightGray ]
         ].