Adding drawer icons in menu

One function I miss in MorphOS is the ability to add icons for programs/files that lack them. Since MorphOS already can recognise what kind of action should go with what kind of program or file this feature should be not to difficult to add (I hope some of the developers see this and consider it).

But you can actually have the ability to add drawer icons. And this is how I’ve done it.

First, right click in Ambient –> Settings –> Ambient Settings –> MIME:

amibient_settings

Click on Internal:

mime_internal

Doubleclick on x-morphos-globalaction-directory:

mime_directory_edit

Now lets click Add…:

mime_add_drawers_setting

I give it the name Add Drawer Icon. Then I click Add… on the right. I choose it as an AmigaDOS program and write the arguments as shown above. The last part: %sp.info, specifies that it will keep the original name of the target file but add .info to it. This mean that it won’t copy over the drawer with the icon, but create a new file with the added ending .info (unless there exist an drawer icon, in which case it will overwrite it). So don’t get it wrong. I choose it as a Menu in Event Type.

If you look at the icon that will be added, then you might notice that it’s not a standard icon. I have changed all the default icons, which is very easy. You just right click in Ambient –> Ambient Settings –> Miscellaneous (or something like that) –> Predefined icons. Here you can change the path if you have an identical set somewhere else. This is the original folder (moved to a different location for convenience):

original_def_icons

And here are my default icons:

def_icons

Here you can see the drawer add_drawer(.info) that I added for this purpose. OK, now we have edited the settings as above, lets save and try it out.

I have created a drawer in RAM: without an icon:

ram_no_added_drawer

I mark the drawer Unnamed and click on the right mouse button:

menu_add_drawer

And there it is. Click on Add Drawer Icon and now RAM: should look something like this:

ram_added_drawer

When we now change view mode to Icon + Icon (= icons only) then this is what we see:

ram_only_added_drawer

A very practical solution indeed.

Just a note: when you create a drawer and you add an drawer icon at the same time MorphOS will automatically choose the def_drawer icon. My def_drawer and add_drawer icons look different, so what I do when I create a new drawer is to use Add Drawer Icon as above on that file as well. Then the old .info file will be replaced with the add_drawer icon (like I mentioned above already). This can of course be done to any drawer.

A good thing is that you can’t do this on any other, non drawer files by mistake. Add Drawer Icon simply doesn’t show up.

If you need some icons, then it’s good to know that any PNG picture turns into an icon if you rename the file from name.png to name.info. There are plenty of icon packs out there in PNG format so you should have no problem googling it. My icons are called BUUF and GANT and are made by Mattahan. The icons I’ve used are spread all around the Internet so you may have to look for it a while to find them. Some icons are made/modified by me as well. I may upload them in the future if I can get the blessing of the author.

One last word: don’t forget the ongoing fundraising at WArMUp to support our software developers. Any spare change is very welcome!

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

4 Responses to Adding drawer icons in menu

  1. Another way of changing icon image is to choose “Information” from the context menu. Then, in the “Information” window, the icon image is displayed (default one if given file or directory has no icon on disk). If one drags any other icon and drops over, image of this dropped icon is copied. The “Save” button ends the story.

    Like

    • Yasu says:

      I did not know you could do that 🙂 It’s not the fastest solution when you have a lot of files to change but it does work. I will write a line about it when I get the time.

      Like

  2. Pingback: Changing icons while keeping tooltypes | Yasu's MorphOS Blog

  3. Cool_amigaN says:

    Great tip! Been looking for such functionality for an eternity now 🙂

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s