author | Stefan Vogel <sv@exept.de> |
Tue, 11 Dec 2012 16:44:21 +0100 | |
changeset 2941 | 15df48eba1c4 |
parent 2940 | 81d2787bb283 |
child 2942 | e5ab3d1211d7 |
--- a/ColorEditDialog.st Tue Dec 11 15:37:03 2012 +0100 +++ b/ColorEditDialog.st Tue Dec 11 16:44:21 2012 +0100 @@ -821,9 +821,7 @@ previewBox isNil ifTrue:[^ self "called before setup"]. previewBox backgroundColor:color. - previewBox foregroundColor:(color brightness < 0.5 - ifTrue:[Color white] - ifFalse:[Color black]). + previewBox foregroundColor:color contrastingBlackOrWhite. ! ! !ColorEditDialog methodsFor:'aspects'!