mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #803] checkbox style #586
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#586
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 @vendelin8 on GitHub (Jan 29, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/803
Hi,
Nice library, thanks!
I have an issue with how the checkbox looks like, or rather that it's too invisible for me. I tried to find unicode characters, eg. ☐ but it's very small in my terminal, doesn't help too much.
So my other choice would be eg. wrapping the original solution inside square brackets like
[X]and[ ]. It would be still the smallest widget, and I think the only downside of this would be (other than most likely backward incompatibility) when someone wants them very dense eg. a minesweeper. But for a minesweeper I'd choose a more lightweight solution anyway than hundreds of checkbox widgets.What do you think?
@carpii commented on GitHub (Feb 9, 2023):
As a workaround in the meantime, you could pad it with spaces a little...
@vendelin8 commented on GitHub (Feb 9, 2023):
Yeah, that would work, but I'd prefer something more visible. I already have my workaround in my fork, but I think it would be rejected as a PR because it's not really backward compatible.
github.com/vendelin8/tview@8100641891@petrsx commented on GitHub (Dec 24, 2023):
Same here. Collapsed node with prefix
[+], expanded node with prefix[-].I think this was solved in https://github.com/rivo/tview/issues/803 like that?
@rivo commented on GitHub (Jan 1, 2024):
The latest commit,
github.com/rivo/tview@b3bd1aa5e9, adds theSetUncheckedStringfunction. Together withSetCheckedString, this should allow you to customize the checkbox to your needs.