ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
49 stars 5 forks source link

Support rendering borders and window titles in WindowLayout #67

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

I had initially planned to just let windows render their own borders using the tui crate's Border widget, but this uses twice the screen real estate that is actually needed to separate the window content. It would be better to just take care of all of it during the rendering of WindowLayout.

ulyssa commented 1 year ago

This can reuse the BorderType enum and its line_symbols method to get a set of characters to use when drawing.

ulyssa commented 1 year ago

I have decided to skip drawing a single border in between each window for now, so that there's at least something for handling window and tab titles. I'll come back and add support later.