UIPainterView.st
changeset 1543 09c4ed98434d
parent 1520 eb77c52704c7
child 1554 d5e4612bf7cf
--- a/UIPainterView.st	Tue Dec 04 14:23:46 2001 +0100
+++ b/UIPainterView.st	Thu Dec 06 09:15:59 2001 +0100
@@ -1522,7 +1522,7 @@
 showSelected:aComponent
     "show object selected
     "
-    |wasClipped sel hColor|
+    |wasClipped sel hColor bg|
 
     selectionHiddenLevel == 0 ifTrue:[
         sel := treeView selection.
@@ -1531,8 +1531,13 @@
         ifTrue: [
             hColor := handleMasterColor
         ] ifFalse:[
-            aComponent viewBackground brightness < 0.5 ifTrue:[
-                hColor := handleColorWhite
+            bg := aComponent viewBackground.
+            bg isColor ifTrue:[
+                bg brightness < 0.5 ifTrue:[
+                    hColor := handleColorWhite
+                ] ifFalse:[
+                    hColor := handleColorBlack
+                ]
             ] ifFalse:[
                 hColor := handleColorBlack
             ]
@@ -1558,6 +1563,8 @@
             self clippedByChildren:(clipChildren := true).
         ]
     ]
+
+    "Modified: / 6.12.2001 / 00:00:16 / cg"
 ! !
 
 !UIPainterView methodsFor:'queries'!