[squeak-dev] The Trunk: Graphics-topa.302.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Oct 17 17:52:36 UTC 2014
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!
More information about the Squeak-dev
mailing list
|