OctoDash icon indicating copy to clipboard operation
OctoDash copied to clipboard

Custom icons in "custom actions"

Open Protoncek opened this issue 5 years ago • 5 comments

I just discovered this plugin. Currently i use Octoscreen, but i find this one really... beautiful, simple, it contains only what i really need, so i might just switch to this one. I understand that it's still under development, but i'd like to know (i searched but didn't find) this: i would like for custom actions to have preheat for PLA, PETG and ABS - i know how to do it, but if i understand correctly it's only possible to use icons from "fontawesome.com" ? Is it possible to use my own? Since that web site doesn't have suitable icons for this purpose.

Thanks!

Protoncek avatar Feb 02 '20 17:02 Protoncek

Hi, unfortunately only fontawesome is available right now. Introducing custom icons will require some major code changes, because fontAwesome offers an easy integration with Angular. I'll be happy to accept a PR for this, but I currently have no time to work on this. Will leave this here, so I can pick up on this later maybe.

UnchartedBull avatar Feb 03 '20 20:02 UnchartedBull

OK, thanks for explanation. For now i just put icons of thermometer (quarter, half and full) for three filaments and i'll be fine. I'll explore some more on those icons if i find more suitable ones... Looking forward for future improvements...

Protoncek avatar Feb 03 '20 20:02 Protoncek

Hi, unfortunately only fontawesome is available right now. Introducing custom icons will require some major code changes, because fontAwesome offers an easy integration with Angular. I'll be happy to accept a PR for this, but I currently have no time to work on this. Will leave this here, so I can pick up on this later maybe.

Tho, is it possible if one would create a .ttf font file with custom logos in it? I know it's not a practical solution but for the moment, it's something I could work on to customise my UI

JoaoFaelMatos avatar Mar 12 '20 11:03 JoaoFaelMatos

Probably not. I'm using the fortawesome angular integration, which makes it super easy to integrate these icons, but I think the library doesn't accept a ttf font or similar. Once v2 is released I will add support for custom icons though ...

UnchartedBull avatar Mar 13 '20 14:03 UnchartedBull

Just a suggestion, how about just letting people paste svg / img elements with source code in them?

AndersWinther-Dahl avatar Sep 17 '22 20:09 AndersWinther-Dahl