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

Support Multi-Colored table cells #25

Closed
maja42 opened this issue Jan 13, 2018 · 3 comments
Closed

Support Multi-Colored table cells #25

maja42 opened this issue Jan 13, 2018 · 3 comments

Comments

@maja42
Copy link

maja42 commented Jan 13, 2018

Currently, it is only possible to define a single color in a TableCell.
It would be great if multiple colors could be supported, perhaps using ansi escape characters? (see my previous question/feature request: #24)

Here is my use case:
I display a table with various git projects and the current repository status. If any repository is in an unwanted state, the information should be printed red. For example, if there are still uncomitted files or untracked branches, the user should see it at a glance.

Here is an example output how it should look like:

image

This was implemented using gocui. With the current way tables (and table cells in particular) in tview work, this can not be accomplished.

@maja42
Copy link
Author

maja42 commented Jan 14, 2018

This is also linked to issue #20

@rivo
Copy link
Owner

rivo commented Jan 16, 2018

I'm looking into this. Will get back to you.

@rivo rivo closed this as completed in 258f212 Jan 17, 2018
@rivo
Copy link
Owner

rivo commented Jan 17, 2018

This is implemented now. It doesn't just affect tables but all other strings as well. I.e. you can partially color titles, lists, modals etc.

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

2 participants