[squeak-dev] The Trunk: Morphic-ul.623.mcz

Levente Uzonyi leves at elte.hu
Mon Sep 10 14:43:15 UTC 2012


On Mon, 10 Sep 2012, Bert Freudenberg wrote:

> On 2012-09-09, at 20:17, commits at source.squeak.org wrote:
>
>> Levente Uzonyi uploaded a new version of Morphic to project The Trunk:
>> http://source.squeak.org/trunk/Morphic-ul.623.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Morphic-ul.623
>> Author: ul
>> Time: 9 September 2012, 3:54:33.811 pm
>> UUID: e69fe3c1-863e-9446-9935-825988ba7d03
>> Ancestors: Morphic-cmm.622
>>
>> Highlight list items based on the selection color instead of the item's preferred color to get better readability.
>>
>> =============== Diff against Morphic-cmm.622 ===============
>>
>> Item was changed:
>>  ----- Method: ListItemWrapper>>highlightingColor (in category 'accessing') -----
>>  highlightingColor
>> +
>> + 	^Preferences menuSelectionColor luminance > 0.5
>> + 		ifTrue: [ Color black ]
>> + 		ifFalse: [ Color white ]!
>> - 	^self preferredColor negated!
>
>
>
> How about using makeForegroundColor?

Nice, didn't know it exists. :)


Levente

>
> - Bert -
>
>
>
>


More information about the Squeak-dev mailing list