dolphinsmalltalk / Dolphin

Dolphin Smalltalk Core Image
MIT License
294 stars 58 forks source link

Scaled icons should be best standard size in iconic control views #1294

Closed blairmcg closed 3 days ago

blairmcg commented 5 days ago

The images in iconic views are best scaled to one of the standard icon sizes for which there is likely to be an available native rendering, otherwise there may be some blurring/distortion. So, for example, if configured for 20x20 icons at 96-dpi, when scaled to 120dpi the images should be rendered at 24x24 rather than 25x25. The use of a fixed set of sizes also prevents the IconImageManager having to generate and accumulate in-memory the image lists for odd sizes. Each such image list needs to contain all the previously used images, and every time a new image is used it needs to be added to all the lists, so the overhead could be significant.

Contains a couple of incidental fixes I noticed along the way: