myleftshoe/powershell

Question on styling

Opened this issue · 1 comments

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!

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.