--- a/ImageEditView.st Wed Nov 24 11:14:28 2010 +0100
+++ b/ImageEditView.st Wed Nov 24 11:16:40 2010 +0100
@@ -1871,13 +1871,21 @@
!
makeSlightlyBrighter
- ^ self makeNewColorMapByMapping:[:clr | clr blendWith:Color lightGrey].
+ ^ self makeNewColorMapByMapping:[:clr |
+ clr brightness > Color lightGrey brightness
+ ifTrue:[ clr blendWith:Color white ]
+ ifFalse:[ clr blendWith:Color lightGrey ]
+ ].
"Created: / 24-11-2010 / 11:08:18 / cg"
!
makeSlightlyDarker
- ^ self makeNewColorMapByMapping:[:clr | clr blendWith:Color darkGrey].
+ ^ self makeNewColorMapByMapping:[:clr |
+ clr brightness < Color darkGrey brightness
+ ifTrue:[ clr blendWith:Color black ]
+ ifFalse:[ clr blendWith:Color darkGrey ]
+ ].
"Created: / 24-11-2010 / 11:08:08 / cg"
!
@@ -2651,11 +2659,11 @@
!ImageEditView class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.242 2010-11-24 10:14:28 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.243 2010-11-24 10:16:40 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.242 2010-11-24 10:14:28 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/ImageEditView.st,v 1.243 2010-11-24 10:16:40 cg Exp $'
! !
ImageEditView initialize!