changeset 2941 | 15df48eba1c4 |
parent 2904 | bd6cacbab203 |
child 3175 | c205d80403ef |
--- 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'!