--- 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'!