Chris Muller uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cmm.585.mcz
==================== Summary ====================
Name: Collections-cmm.585
Author: cmm
Time: 20 October 2014, 7:48:42.698 pm
UUID: 954b50eb-27a5-41e8-9b9f-a49f39336c75
Ancestors: Collections-ul.584
Speed up visiting with #addNewElement:. It provides the common pattern of checking for inclusion, followed by add:, in just one scan, instead of two.
=============== Diff against Collections-ul.584 ===============
Item was added:
+ ----- Method: Set>>addNewElement: (in category 'adding') -----
+ addNewElement: anObject
+ "Ensure anObject is part of the receiver. Answer whether its membership was newly acquired."
+ | index |
+ index := self scanFor: anObject.
+ ^ (array at: index)
+ ifNil:
+ [ self
+ atNewIndex: index
+ put: anObject asSetElement.
+ true ]
+ ifNotNil: [ false ]!
Chris Muller uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cmm.585.mcz
==================== Summary ====================
Name: Collections-cmm.585
Author: cmm
Time: 20 October 2014, 7:48:42.698 pm
UUID: 954b50eb-27a5-41e8-9b9f-a49f39336c75
Ancestors: Collections-ul.584
Speed up visiting with #addNewElement:. It provides the common pattern of checking for inclusion, followed by add:, in just one scan, instead of two.
=============== Diff against Collections-ul.584 ===============
Item was added:
+ ----- Method: Set>>addNewElement: (in category 'adding') -----
+ addNewElement: anObject
+ "Ensure anObject is part of the receiver. Answer whether its membership was newly acquired."
+ | index |
+ index := self scanFor: anObject.
+ ^ (array at: index)
+ ifNil:
+ [ self
+ atNewIndex: index
+ put: anObject asSetElement.
+ true ]
+ ifNotNil: [ false ]!
Tobias Pape uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-topa.302.mcz
==================== Summary ====================
Name: Graphics-topa.302
Author: topa
Time: 17 October 2014, 7:52:01.909 pm
UUID: 6f29f93b-d314-4b50-bf38-3939460a11c6
Ancestors: Graphics-topa.301
Fix Color>>#duller for already grey colors.
Resolves the violet tinting of SystemWindows in "uniform color" mode.
=============== Diff against Graphics-topa.301 ===============
Item was changed:
----- Method: Color>>duller (in category 'transformations') -----
duller
+ "Answer a darker, desaturated color. If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey). If the original color is a grey, don't try to be smart."
- "Answer a darker, desaturated color. If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey)."
| sat adjust |
(sat := self saturation) > 0.3
ifTrue: [adjust := -0.1]
ifFalse: [adjust := 0.1 - sat max: 0.0].
+ ^ sat isZero
+ ifTrue: [self adjustBrightness: -0.1]
+ ifFalse: [self adjustSaturation: adjust brightness: -0.1]!
- ^ self adjustSaturation: adjust brightness: -0.1!
Tobias Pape uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-topa.302.mcz
==================== Summary ====================
Name: Graphics-topa.302
Author: topa
Time: 17 October 2014, 7:52:01.909 pm
UUID: 6f29f93b-d314-4b50-bf38-3939460a11c6
Ancestors: Graphics-topa.301
Fix Color>>#duller for already grey colors.
Resolves the violet tinting of SystemWindows in "uniform color" mode.
=============== Diff against Graphics-topa.301 ===============
Item was changed:
----- Method: Color>>duller (in category 'transformations') -----
duller
+ "Answer a darker, desaturated color. If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey). If the original color is a grey, don't try to be smart."
- "Answer a darker, desaturated color. If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey)."
| sat adjust |
(sat := self saturation) > 0.3
ifTrue: [adjust := -0.1]
ifFalse: [adjust := 0.1 - sat max: 0.0].
+ ^ sat isZero
+ ifTrue: [self adjustBrightness: -0.1]
+ ifFalse: [self adjustSaturation: adjust brightness: -0.1]!
- ^ self adjustSaturation: adjust brightness: -0.1!
Tobias Pape uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-topa.302.mcz
==================== Summary ====================
Name: Graphics-topa.302
Author: topa
Time: 17 October 2014, 7:52:01.909 pm
UUID: 6f29f93b-d314-4b50-bf38-3939460a11c6
Ancestors: Graphics-topa.301
Fix Color>>#duller for already grey colors.
Resolves the violet tinting of SystemWindows in "uniform color" mode.
=============== Diff against Graphics-topa.301 ===============
Item was changed:
----- Method: Color>>duller (in category 'transformations') -----
duller
+ "Answer a darker, desaturated color. If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey). If the original color is a grey, don't try to be smart."
- "Answer a darker, desaturated color. If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey)."
| sat adjust |
(sat := self saturation) > 0.3
ifTrue: [adjust := -0.1]
ifFalse: [adjust := 0.1 - sat max: 0.0].
+ ^ sat isZero
+ ifTrue: [self adjustBrightness: -0.1]
+ ifFalse: [self adjustSaturation: adjust brightness: -0.1]!
- ^ self adjustSaturation: adjust brightness: -0.1!
Tobias Pape uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-topa.749.mcz
==================== Summary ====================
Name: Morphic-topa.749
Author: topa
Time: 17 October 2014, 7:47:18.876 pm
UUID: 5ffca218-b49c-4921-a67e-362aeb1ac71c
Ancestors: Morphic-eem.748
Make MenueItemMorph respect the
#menueWithIcons preference.
=============== Diff against Morphic-eem.748 ===============
Item was changed:
----- Method: MenuItemMorph>>hasIcon (in category 'accessing') -----
hasIcon
+ "Answer whether the receiver has an icon. If menues without icons are
+ requested, pretend to not bear one unless we have not content."
+ ^ self icon notNil and: [
+ Preferences menuWithIcons or: [self contents isEmptyOrNil]].!
- "Answer whether the receiver has an icon."
- ^ icon notNil!
Tobias Pape uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-topa.749.mcz
==================== Summary ====================
Name: Morphic-topa.749
Author: topa
Time: 17 October 2014, 7:47:18.876 pm
UUID: 5ffca218-b49c-4921-a67e-362aeb1ac71c
Ancestors: Morphic-eem.748
Make MenueItemMorph respect the
#menueWithIcons preference.
=============== Diff against Morphic-eem.748 ===============
Item was changed:
----- Method: MenuItemMorph>>hasIcon (in category 'accessing') -----
hasIcon
+ "Answer whether the receiver has an icon. If menues without icons are
+ requested, pretend to not bear one unless we have not content."
+ ^ self icon notNil and: [
+ Preferences menuWithIcons or: [self contents isEmptyOrNil]].!
- "Answer whether the receiver has an icon."
- ^ icon notNil!