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

Change preprocessing of Godot icons #64

Open
NathanLovato opened this issue Oct 8, 2024 · 0 comments
Open

Change preprocessing of Godot icons #64

NathanLovato opened this issue Oct 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NathanLovato
Copy link
Contributor

NathanLovato commented Oct 8, 2024

Currently, the preprocessor inserts a component for a Godot icon in front of a Godot symbol in backticks. For example, `Signal` becomes <IconGodot name="Signal"/> Signal. We need to change that to capture the symbol name to be able to recolor the icon and the text with it for better readability and spacing.

The markup should be: <IconGodot name="{name}" colorGroup="{colorGroup}">{name}</IconGodot>

The colorGroup attribute is one of:

  • 2d
  • 3d
  • animation
  • ui
  • general
  • node (for Node only)
  • editor (for icons in the editor like +, etc.)

Implementation notes

I would categorize the nodes in sequences and generate a table that maps names to their color groups at compile time. Heuristics:

  • Anything that ends with 2D or 3D goes to the respective group.
  • Anything listed manually as part of a given group goes to that group.
  • Everything else goes to general by default.

We can start there and update the data as needed.

@NathanLovato NathanLovato added the enhancement New feature or request label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant