diff -r 81d2787bb283 -r 15df48eba1c4 ColorEditDialog.st --- 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'!