Author Topic: Adding Icons  (Read 1974 times)

0 Members and 1 Guest are viewing this topic.

Offline mhoney

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Adding Icons
« on: June 14, 2016, 06:43:13 PM »
I am running HFS 2.3H Under Linux with Wine and am wondering how I can add icons?  I have tried using the add icons from the other options menu, but no matter what I try to add (.gif, .png, .ico) it always says 0 icons added. 

On a Windows machine I was able to add a PDF icon by dragging and dropping a pdf file onto hfs and it extracted the icon.  Where does it store these icons?  I don't mind adding the icons with windows then moving them to Linux.
« Last Edit: June 14, 2016, 07:22:56 PM by mhoney »

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: Adding Icons
« Reply #1 on: June 14, 2016, 07:29:28 PM »
try to place the icon files in the root directory of HFS.exe , as they will still be available, don't forget that with wine hfs run under a virtual machine

Offline mhoney

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: Adding Icons
« Reply #2 on: June 14, 2016, 07:32:43 PM »
So if I put these files in the root of hfs, what should they be?  .gif, png, ico?  Does it matter what I name them?

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: Adding Icons
« Reply #3 on: June 14, 2016, 08:28:50 PM »
you can add some  ico png bmp, but avoid gif

by using to icons masks, you will be able to associate a mask with a user icon numbered over 10000





Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 870
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: Adding Icons
« Reply #4 on: June 15, 2016, 02:17:59 PM »
i have always found it easier and better to html code icons:

http://www.w3schools.com/icons/
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline mhoney

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: Adding Icons
« Reply #5 on: June 15, 2016, 05:45:01 PM »
I appreciate your input but none of it even remotely answers my specific questions.  Where do imported icons get stored?  What do the icons have to be named?  What type of file should the icons be?

If this feature of HFS isn't fully implemented or just doesn't work then let me know and I'll quit asking ;)

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 586
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: Adding Icons
« Reply #6 on: June 16, 2016, 05:28:25 AM »
It would be good to exactly know that you are trying to achieve...
I mean, when you talk about "icons", you are referring to:

- Favicons
- Shortcut icons (file shortcut icon)
- Icons shown in files shared by HFS

If it's the last option, I think HFS "takes" the current icon associated with file types from your system. I mean, if you have .zip files associated to WinRAR, when you share files with HFS, it will show a WinRAR icon (an icon like this ), but if it's associated to WinZIP, it will show a WinZIP icon (an icon like this ).

But things get more complicated in case of using Linux (HFS+WINE), since I don't know how WINE handles file association (and his icons). In Windows it's easy to change those icons, but I don't know how to do it in Linux. Anyway, this is a WINE issue, and it doesn't have anything to do directly with HFS (since HFS uses the system icons). Someone correct me if I'm wrong.

About icons associated with a file type on WINE, here and here's more info.
« Last Edit: June 16, 2016, 05:34:50 AM by LeoNeeson »
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
• I'm open to help and share any file you may need (just ask me) ;)

Offline mhoney

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: Adding Icons
« Reply #7 on: June 16, 2016, 12:08:48 PM »
Thanks for the information LeoNeeson.  That is very close to what I was looking for.  If i can figure out how exactly it works on Windows then I will look elsewhere on how to translate that information into WINE.

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 870
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: Adding Icons
« Reply #8 on: June 16, 2016, 10:43:32 PM »
a continuation of this posted by same user...:

http://www.rejetto.com/forum/bug-reports/icons-don't-survive-hfs-restart/?topicseen

----------------------------------------------------------------
you answered the question on this forum topic with your start post... it works in windows, but doent in linux....

Its hard to say what the root cause is...

each Linux distro is different.. each GUI (if you have one is different)...
so its hard to give help....

lets see:
Don't know if you can bring over the icon with the windows to linux method haven't tested....

the save location on linux will be difference on windows....

memory serves:
(there actual is a hidden folder directly inside HFS, that directory holds the ICO files among other scripts such as the jqurey....)

It been a while and i need to get a re look at the program menu, i think it can open that folder path (as it doen't exist when hfs is not running - which may be why its goen upon restart! -) ........


but the problem realy comes down to: is the linux compabilty layer in wine... that prevent HFS form saveing those files....
-could even be a permsion isue via linux....

-----------------------------------------------------------

Back when i test a way older version of HFS on ubuntu 7 with gnome 2, this feature was working, but i had aces to the icon direct and theming and other "BS" that made linux look(gnome 2 / emerald / qurt 4/ qt 4 / etc open source destroyed becuase of unity and gnome 3.0 ont he ubuntu distro....) and i was sucessfuly able to make a ubuntu gnome 2 work and look like a windwos xp - windwos 7 OS....(but it was linux and other stuff that no longer aviable nor around... :( )
------------------------------------------------------------
so, my only advice to you is program icon form a templte file via: http://www.w3schools.com/icons/

or look into where your Linux distort / gui stores the defualt ICO files.... not going any further into this one...
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 586
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: Adding Icons
« Reply #9 on: June 17, 2016, 10:46:57 AM »
If i can figure out how exactly it works on Windows then I will look elsewhere on how to translate that information into WINE.
Check ALL the links contained on my last post and you will understand how it works on Windows for sure. ::)

:) And please, next time only open one thread for the same issue, to keep things more organized and clean (we check all the forums for answers, so it doesn't matter where you post it). Keep in touch in case you don't find a solution.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
• I'm open to help and share any file you may need (just ask me) ;)

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Adding Icons
« Reply #10 on: June 19, 2016, 01:13:44 PM »
sorry for the late reply,
it should be in the .vfs file, but for sure some of them are, i don't remember exactly the logic