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

Question on styling #2

Open
JasperSurmont opened this issue May 20, 2020 · 1 comment
Open

Question on styling #2

JasperSurmont opened this issue May 20, 2020 · 1 comment

Comments

@JasperSurmont
Copy link

Hey, I didnt see an e-mail so I try my luck asking here:
How did you manage to, for example in here create that skewed background? What I mean is that the end of a certain backgroundcolor (for example the grey one at the date) ends in a triangle ( > ) form instead of a straight ( | ) one. I tried looking through your code but couldn't immediately find the solution. Thanks!

@myleftshoe
Copy link
Owner

Hi Jasper,

First, if you haven't already, patch your fonts by installing a Nerd Font. View the font in charmap to get the char code for the one you want.

For coloring you need to set the foreground and background colors of the triangle to match the surrounding chars. Eg.

GGGGTRRRRT

where T is the triangle and G and R are spaces with green and red background colors, you would set the first triangle foreground color to green and the background to red, and last to red and transparent.

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