#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sun, 30 Oct 2016 14:34:57 +0100
changeset 16985 ce79de6db243
parent 16984 2333af91763e
child 16986 257538e3f185
#REFACTORING by cg class: DebugView changed: #setLabelFor:in:
DebugView.st
--- a/DebugView.st	Sun Oct 30 14:23:06 2016 +0100
+++ b/DebugView.st	Sun Oct 30 14:34:57 2016 +0100
@@ -3791,15 +3791,7 @@
         colorUsed := isStoppedAtHaltOrBreakPoint 
                         ifTrue:[ Color orange ]
                         ifFalse:[ Color red ].
-                        
-        (exceptionInfoLabel backgroundColor brightness dist:colorUsed brightness) < 0.5
-        ifTrue:[
-            exceptionInfoLabel backgroundColor brightness > 0.5 ifTrue:[
-                colorUsed := colorUsed slightlyDarkened.
-            ] ifFalse:[
-                colorUsed := colorUsed slightlyLigntened.
-            ].    
-        ].
+        colorUsed := colorUsed contrastingColorFor:exceptionInfoLabel backgroundColor.                
         
         exceptionInfoLabel
             label:(resources