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

Allow docking Line widgets #24

Open
docelic opened this issue Apr 14, 2023 · 0 comments
Open

Allow docking Line widgets #24

docelic opened this issue Apr 14, 2023 · 0 comments

Comments

@docelic
Copy link
Collaborator

docelic commented Apr 14, 2023

There exists 'border docking' functionality in Crysterm where overlapping/crossing borders are replaced with a more suitable character that joins them more seamlessly.

An example can be seen in examples/chat.cr on the bottom-right. (Can try the example with dock_borders: false to see the difference).

Similar functionality would be required for Line widgets as well. See test/widget-line.cr.

Docking functionality should be extracted into a reusable component, and then use it separately for borders and line widgets.

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

1 participant