ayushsharma82 / ESP-DASH

Realtime Dashboard UI Library for ESP32 / ESP8266
https://espdash.pro
GNU General Public License v3.0
920 stars 197 forks source link

Custom Button Icons #156

Open adojang opened 1 year ago

adojang commented 1 year ago

Hi there! Just bought the pro version today after a few months of playing with ESP-DASH. Thank you for your wonderful contribution to the ESP32 codebase!

I wanted to ask if there might be a way to document how to add a custom icon to a generic card. Ideally this would be similar to how a custom logo is added.

Additionally, if the icons are stored in the correct format, it might be possible for the user to also choose the color.

Something like this might be useful: https://remixicon.com/ where the user is able to choose a color and Icon.

The function call might look like:

Card card1(&dashboard, BUTTON_CUSTOM, rocket, f0bb40, "Custom Rocket Button",);

The card might look like this:

image

In a separate file, icons.h, the user can translate icons from svg to the gzip/arduino/byte array format you're using with the tool you wrote.

I've got a few specific icons I'd love to see on the dashboard, but they don't exist yet:

stale[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still facing the problem, please tag the author of repository and state your concern.

arzaman commented 3 months ago

Hi @adojang did you find a solution to define custom icon / custom color ?

mathieucarbou commented 3 months ago

I would be interested in such feature too.

adojang commented 3 months ago

I ended starting to decompile the source code, but eventually decided to leave it. @ayushsharma82 , it seems this is a much requested feature :) Perhaps you could spend some time to make it available? The code or process to use a custom logo might be reused.

github-actions[bot] commented 2 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.