Logic we will have to clean
patchworkUIThemeColorFor: aWindowOrModel "Answer the colour for the given window." ^ aWindowOrModel ifNotNil: [ (aWindowOrModel respondsTo: #patchworkUIThemeColor) ifTrue: [aWindowOrModel patchworkUIThemeColor] ifFalse: [(aWindowOrModel class respondsTo: #patchworkUIThemeColor) ifTrue: [aWindowOrModel class patchworkUIThemeColor] ifFalse: [self settings windowColor]]] windowColorFor: aWindowOrModel "Answer the colour for the given window." | c | ^ self settings standardColorsOnly ifTrue: [self settings windowColor] ifFalse: [c := aWindowOrModel isMorphicModel ifTrue: [self patchworkUIThemeColorFor: aWindowOrModel model]. c ifNil: [(self patchworkUIThemeColorFor: aWindowOrModel) ifNil: [self settings windowColor]]]
Why? Looks perfectly understandable to me ;-P ----- Cheers, Sean -- View this message in context: http://forum.world.st/Logic-we-will-have-to-clean-tp4768190p4768403.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (2)
-
Sean P. DeNigris -
stepharo