Issue 3433 in pharo: Color improvement

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Issue 3433 in pharo: Color improvement

pharo
Status: FixedWaitingToBePharoed
Owner: stephane.ducasse
Labels: Milestone-1.3 Difficulty-Easy

New issue 3433 by stephane.ducasse: Color improvement
http://code.google.com/p/pharo/issues/detail?id=3433

Levente Uzonyi uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ul.490.mcz

==================== Summary ====================

Name: Morphic-ul.490
Author: ul
Time: 9 December 2010, 3:06:57.133 am
UUID: e54bc2a6-58ae-8f42-b64e-f17a63bc00e6
Ancestors: Morphic-laza.489

- simplified Morph >> #colorString:

=============== Diff against Morphic-laza.489 ===============

Item was changed:
  ----- Method: Morph>>colorString: (in category 'printing') -----
  colorString: aColor
+
+       aColor ifNil: [ ^'nil' ].
+       ^aColor name
+               ifNil: [ aColor storeString ]
+               ifNotNil: [ :colorName | 'Color ', colorName ]!
-       aColor ifNil: [^'nil'].
-       Color colorNames
-               do: [:colorName | aColor = (Color perform: colorName)  
ifTrue: [^'Color ' , colorName]].
-       ^aColor storeString!