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

Colored font #16

Open
nixfreak opened this issue Apr 21, 2023 · 4 comments
Open

Colored font #16

nixfreak opened this issue Apr 21, 2023 · 4 comments

Comments

@nixfreak
Copy link

nixfreak commented Apr 21, 2023

Is it possible to have color font before using a fragment to highlight?

So the nbText already has a color first , then use a fragment to fade in , fade out.

@HugoGranstrom
Copy link
Owner

It's definitely possible, but it depends on exactly what you want. Do you want to color it using the highlightGreen/Red/Blue fragment, or do you want something which can make any nbText have a certain color?

For the second case, one could create a new block nbTextColor that could work something like this:

nbTextColor("red"): """
# Header
Some text bla bla.
"""

@nixfreak
Copy link
Author

nixfreak commented Jun 8, 2023

Ok , would that be pull request to nimib repo or here?
Cause I would have to create a template called nbTextColor correct?

@nixfreak
Copy link
Author

nixfreak commented Jun 8, 2023

I'm having so much fun with this library , thank you.

@HugoGranstrom
Copy link
Owner

Yes you are correct, a template called nbTextColor. I would say this is general enough to be used by any nimib project so I would PR it to nimib.

Thank you, that's great to hear 😁 now that summer is upon us, I will have more time for development again.

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

No branches or pull requests

2 participants