mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #933] Change List border to single line #684
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#684
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abitrolly on GitHub (Jan 5, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/933
After calling
list.SetBorder(true)(see the code below) the default width of https://pkg.go.dev/github.com/rivo/tview#List is double line.I want to change that to single line, but can't find the API. There are two functions that may do this, but it is not clear what parameters they get and what is the effect.
If changing the style is possible, an example would be appreciated.
@abitrolly commented on GitHub (Jan 6, 2024):
Thanks for the confirmation that
tviewcurrently doesn't allow to set border drawing chars for separate components. )Nice to see that it is already implemented in the fork. I think
tviewcould adopt theBorderStylestructure.https://github.com/digitallyserviced/tview/blob/digitally/borders.go#L5
I guess it is even possible to preserve existing properties of
tcell.Stylethat is passed to current version oftviewBox.SetBorderStyle(), so that API is backwards compatible.@abitrolly commented on GitHub (Jan 6, 2024):
Found #747 with the request to dynamically set border rules.
@abitrolly commented on GitHub (Jan 8, 2024):
@digitallyserviced the biggest challenge in maintaining (public) libraries is to design interfaces in future compatible manner. Do not break things, and ensure that future extensibility is possible. I see that at least your
Box.SetBorderStyleimplementation breaks API, so that's one reason to avoid the change.As for your other changes, they don't seem to be related to single or double line problem.
@carpii commented on GitHub (Jan 17, 2024):
@digitallyserviced - You regularly promote your fork, and indeed you seem to have made a lot of improvements to it.
But the problem is, it's a big bunch of undocumented changes.
No serious developer is going to switch from an official repo to a random fork where none of the changes have been documented.