Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Button Icons #156

Open
adojang opened this issue Apr 26, 2023 · 4 comments
Open

Custom Button Icons #156

adojang opened this issue Apr 26, 2023 · 4 comments
Assignees

Comments

@adojang
Copy link

adojang commented Apr 26, 2023

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:

  • Door
  • Lightbulb
  • Speaker
Copy link

stale bot commented Feb 11, 2024

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.

@stale stale bot added the wontfix label Feb 11, 2024
@arzaman
Copy link

arzaman commented Mar 17, 2024

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

@stale stale bot removed the wontfix label Mar 17, 2024
@mathieucarbou
Copy link
Contributor

I would be interested in such feature too.

@adojang
Copy link
Author

adojang commented Mar 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants