textColor: overrides the color attribute of the Text object
Dec. 6, 2015
7:38 p.m.
Hi, Consider the following two code snippet below: [1] (RubScrolledTextMorph new textColor: Smalltalk ui theme textColor; setText: (Text string: 'a b c' attributes: {TextColor green}); yourself) openInWorld. [2] (RubScrolledTextMorph new setText: (Text string: 'a b c' attributes: {TextColor green}); textColor: Smalltalk ui theme textColor; yourself) openInWorld. In the first case the color of the text is the one from the theme, while in the second the color is green. So if set after the text object, the textColor attribute overrides the actual color of the text. Is this the expected behaviour? With PluggableTextMorph the color of the text object always tool priority over the #textColor atribute of the text morph. Cheers, Andrei
3890
Age (days ago)
3890
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrei Chis