-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Italic Borders? #1129
Comments
This is the intended behavior. https://docs.rs/ratatui/latest/ratatui/widgets/block/struct.Block.html#method.border_style
https://docs.rs/ratatui/latest/ratatui/widgets/block/struct.Block.html#method.style
https://github.com/ratatui-org/ratatui/blob/main/examples/README.md#block shows examples of various combinations of styling
To fix:
|
@joshka I think this is a great addition to the documentation. The example in particular is thought out and easy to follow. Admittedly, my initial misunderstanding came from not realizing that |
Description
I've found that when displayed in the Windows terminal (via powershell), the borders of a widget will appear italicized.
To Reproduce
This is the relevant code that will reproduce the error (image below):
Expected behavior
I'd expect the borders to render normally (see code snippet at bottom for work-around)
Screenshots
Environment
Additional context
It's possible to workaround this issue with the following code. I didn't look too far into it, but it seems that the initial implementation is applying the italics to the border characters as well as the title characters, whereas the following implementation limits the italics to the title itself, but this feels far less intuitive to write out. It's worth noting that I did not see any problems with this when using Wezterm on Windows or Kitty on Arch Linux.
The text was updated successfully, but these errors were encountered: