6541 |
6541 |
6542 (displayLabel isNil or:[displayLabel isString]) ifTrue:[ |
6542 (displayLabel isNil or:[displayLabel isString]) ifTrue:[ |
6543 ^ self |
6543 ^ self |
6544 ]. |
6544 ]. |
6545 displayLabel isImageOrForm ifTrue:[ |
6545 displayLabel isImageOrForm ifTrue:[ |
6546 displayLabel := menuPanel imageOnDevice:displayLabel. |
6546 displayLabel := menuPanel imageOnMyDevice:displayLabel. |
6547 ^ self. |
6547 ^ self. |
6548 ]. |
6548 ]. |
6549 |
6549 |
6550 (displayLabel isKindOf:LabelAndIcon) ifTrue:[ |
6550 (displayLabel isKindOf:LabelAndIcon) ifTrue:[ |
6551 (icon := displayLabel image) notNil ifTrue:[ |
6551 (icon := displayLabel image) notNil ifTrue:[ |
6552 displayLabel image:(menuPanel imageOnDevice:icon) |
6552 displayLabel image:(menuPanel imageOnMyDevice:icon) |
6553 ]. |
6553 ]. |
6554 (icon := displayLabel icon) notNil ifTrue:[ |
6554 (icon := displayLabel icon) notNil ifTrue:[ |
6555 displayLabel icon:(menuPanel imageOnDevice:icon) |
6555 displayLabel icon:(menuPanel imageOnMyDevice:icon) |
6556 ]. |
6556 ]. |
6557 ^ self |
6557 ^ self |
6558 ]. |
6558 ]. |
6559 |
6559 |
6560 displayLabel isArray ifFalse:[^ self]. |
6560 displayLabel isArray ifFalse:[^ self]. |
6561 |
6561 |
6562 displayLabel keysAndValuesDo:[:i :el| |
6562 displayLabel keysAndValuesDo:[:i :el| |
6563 (el notNil and:[el isString not]) ifTrue:[ |
6563 (el notNil and:[el isString not]) ifTrue:[ |
6564 el isImageOrForm ifTrue:[ |
6564 el isImageOrForm ifTrue:[ |
6565 displayLabel at:i put:(menuPanel imageOnDevice:el). |
6565 displayLabel at:i put:(menuPanel imageOnMyDevice:el). |
6566 ] ifFalse:[ |
6566 ] ifFalse:[ |
6567 el class == LabelAndIcon ifTrue:[ |
6567 el class == LabelAndIcon ifTrue:[ |
6568 (icon := el image) notNil ifTrue:[ |
6568 (icon := el image) notNil ifTrue:[ |
6569 el image:(menuPanel imageOnDevice:icon) |
6569 el image:(menuPanel imageOnMyDevice:icon) |
6570 ]. |
6570 ]. |
6571 (icon := el icon) notNil ifTrue:[ |
6571 (icon := el icon) notNil ifTrue:[ |
6572 el icon:(menuPanel imageOnDevice:icon) |
6572 el icon:(menuPanel imageOnMyDevice:icon) |
6573 ] |
6573 ] |
6574 ] |
6574 ] |
6575 ] |
6575 ] |
6576 ] |
6576 ] |
6577 ]. |
6577 ]. |