[Cuis-dev] Vector icons?
Eric Gade
eric.gade at gmail.com
Sun Apr 25 07:23:59 PDT 2021
Hi Bernhard,
On Sun, Apr 25, 2021 at 3:19 AM Bernhard Pieber via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
Thanks for the pointer to the Haiku icons. I managed to load your project
> in Squeak. They look good. What is your intended use case for ObjectIcon
> and CollectionIcon?
>
The idea is that an ObjectIcon is simply a visual wrapper for any object
(see #wrappedObject) and you can decide what to do when the ObjectIcon is
double clicked (or single clicked or dragged or dropped on etc). Default
behavior is to simply open an inspector on the wrappedObject. I have added
extension methods to the base Object class so you can send #asIcon to any
object in the system and get a default ObjectIcon for it (try someObject
asIcon openInHand). I use these as a kind of traditional "desktop
environment" when managing objects that I care about. The short of it is:
instead of icons representing files and folders, they represent objects and
collections of objects.
This is completely different and pretty much unrelated to having a
"vocabulary" of icons available in the system, be it Cuis or Squeak or
whatever. The goal of my previous message was simply to make everyone aware
of two things: 1) the Haiku icons, which are nice looking and available in
both SVG and PNG (and my code is an example of what they look like in a
live system), 2) The HVIF format invented by the Haiku people, which offers
a more compressed alternative to SVG for vector icon formats.
--
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210425/514bce37/attachment.htm>
More information about the Cuis-dev
mailing list