The current trash can icon in Squeak does not look right if your background is non-white. I have played a little with trying to fix it, but this is beyond my graphics tweaking skills.
Does anyone know how to fix the thing so that it looks okay on an arbitrary background? Or, is there a trashcan icon we can steal from somewhere else? Or does someone want to draw a new one?
Don't forget there are really two icons: closed can, and open can.
-Lex
Lex Spoon wrote:
The current trash can icon in Squeak does not look right if your background is non-white. I have played a little with trying to fix it, but this is beyond my graphics tweaking skills.
I don't know much either... It depends on how the image is stored. If it is stored in a 32-bit format, make sure that all of the pixels off of the square have an "alpha" value of 0. Then examine all the pixels along the edge... They should have a RGB value equal to the color of the can and an A value representing where they are along the edge of the can, For example a pixel that is only 25% on the immaginary mathematical line of the can's edge should have an alpha value of 0.25. The main part of the can should have an alpha value of 1.0.
On Feb 13, 2005, at 10:18 AM, Lex Spoon wrote:
The current trash can icon in Squeak does not look right if your background is non-white. I have played a little with trying to fix it, but this is beyond my graphics tweaking skills.
Does anyone know how to fix the thing so that it looks okay on an arbitrary background? Or, is there a trashcan icon we can steal from somewhere else? Or does someone want to draw a new one?
Oddly enough we actually have a brand new trash can in 3.9alpha, if you download it from squeak.org. (It was part of Diego's look changes.)
The border of the new can seems to look fine if you make the background non-white.
There are a few aspects of the new look that we may need to revert or fix, such as the default code font which doesn't have left assignment arrows. But the new trash can looks pretty nice! :)
Don't forget there are really two icons: closed can, and open can.
The new can is always open.
- Doug
Am 13.02.2005 um 21:20 schrieb Doug Way:
There are a few aspects of the new look that we may need to revert or fix, such as the default code font which doesn't have left assignment arrows.
Since we now finally move to proper font support, I'd rather not mangle underscores again. I've written a small package to patch the old fonts (make arrow into underscores) and replace _ in the code by := (see http://source.impara.de/underscore.html). We still could add a proper unicode left-arrow back ...
- Bert -
Hi bert
There are a few aspects of the new look that we may need to revert or fix, such as the default code font which doesn't have left assignment arrows.
Since we now finally move to proper font support, I'd rather not mangle underscores again. I've written a small package to patch the old fonts (make arrow into underscores) and replace _ in the code by := (see http://source.impara.de/underscore.html). We still could add a proper unicode left-arrow back ...
Are you implying that method bodies would only contain := and not \leftarrow? Am I dreaming? Has this fix been approved by Goods? Because you know that := is one extra character to type? What is the process to get that in Squeak?
(I'm fed up to see my files containing _ been unreadable because of the old behavior, but even me the raging french I got over and thought that this would last again 20 years before it would be fixed).
Stef
On 14 févr. 05, at 12:05, Bert Freudenberg wrote:
Am 13.02.2005 um 21:20 schrieb Doug Way:
There are a few aspects of the new look that we may need to revert or fix, such as the default code font which doesn't have left assignment arrows.
Since we now finally move to proper font support, I'd rather not mangle underscores again. I've written a small package to patch the old fonts (make arrow into underscores) and replace _ in the code by := (see http://source.impara.de/underscore.html). We still could add a proper unicode left-arrow back ...
- Bert -
Hi bert
I tried your code on 3.9 but I do not get := instead of _ only when I pretty print but this was also the case without your fix. So can you tell me what is the result that I should get.
Stef
Am 30.03.2005 um 20:00 schrieb stéphane ducasse:
On 14 févr. 05, at 12:05, Bert Freudenberg wrote:
Am 13.02.2005 um 21:20 schrieb Doug Way:
There are a few aspects of the new look that we may need to revert or fix, such as the default code font which doesn't have left assignment arrows.
Since we now finally move to proper font support, I'd rather not mangle underscores again. I've written a small package to patch the old fonts (make arrow into underscores) and replace _ in the code by := (see http://source.impara.de/underscore.html). We still could add a proper unicode left-arrow back ...
- Bert -
Hi bert
I tried your code on 3.9 but I do not get := instead of _ only when I pretty print but this was also the case without your fix. So can you tell me what is the result that I should get.
Just loading tht code does not patch the sources. You have to invoke that manually:
FixUnderscores fixPackages: #('Kernel' 'Morphic')
This uses PI.
- Bert -
squeak-dev@lists.squeakfoundation.org