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

Easier way to add icons to buttons #1268

Open
96LawDawg opened this issue Jul 13, 2022 · 1 comment · May be fixed by #1937
Open

Easier way to add icons to buttons #1268

96LawDawg opened this issue Jul 13, 2022 · 1 comment · May be fixed by #1937
Labels
enhancement New feature or request widget properties changes to widget properties

Comments

@96LawDawg
Copy link
Collaborator

@ArnoldSmith86's idea from Discord.

Instead of

{
  "type": "button",
  "classes": "symbols",
  "css": "font-size: 60px",
  "text": "[arrow_left]"
}

Do this for VTT-Symbols:

{
  "type": "button",
  "symbol": "[arrow_left]"
}

And instead of

{
  "type": "button",
  "classes": "material-icons",
  "css": "font-size: 60px; display:flex",
  "text": "east"
}

Do this for Material Icons:

{
  "type": "button",
  "symbol": "east"
}

Use [ to distinguish between VTT symbols and Material Icons. For both fonts it would automatically center the icon and make it as big as the button can fit.

@96LawDawg 96LawDawg added enhancement New feature or request widget properties changes to widget properties labels Jul 13, 2022
@mousewax
Copy link
Collaborator

Eventually I want to integrate VTT Symbols into Robot so that you can use both letters and symbols in one widget. That's why the VTT Symbols have the square brackets so it doesn't mistakenly replace words with glyphs. I have not been able to quite get there yet as I have not had time. I am currently looking at scripts used by https://www.nerdfonts.com/ to combine the symbols fonts with the regular fonts.

@96LawDawg 96LawDawg linked a pull request Nov 12, 2023 that will close this issue
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request widget properties changes to widget properties
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants