mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #12] Support for colors via rgb #8
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#8
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 @tj on GitHub (Jan 11, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/12
Awesome project! This is exactly what I had intended on building and never got around to hahah, so thanks :D
It might be cool to support something like https://github.com/aybabtme/rgbterm for colors, you just pass a regular
rgb()(or could be hex etc) and it approximates it for you—the tcell stuff is a little awkward in comparison.Happy to PR if it's something you'd be interested in.
@rivo commented on GitHub (Jan 11, 2018):
Thanks. Let me look into this. Will get back to you.
@rivo commented on GitHub (Jan 12, 2018):
The referenced commit is for RGB color tags in
TextView.To specify RGB colors in other places,
tcellprovides the functions you need. Please see GetColor(), NewHexColor(), and NewRGBColor().@tj commented on GitHub (Jan 12, 2018):
oh wow I missed those, thanks!