Extend color support to include text attributes #65

Open
opened 1 year ago by gdamore · 1 comments
gdamore commented 1 year ago

In some environments, we cannot use color to indicate things -- for example when dealing with a monochrome monitor, or rendering for color blind folks.

It would be therefore desirable to support a SetStyle(), SetFocusedStyle(), etc. These would take just a tcell Style.

Under the hood, tcell Styles should be used, and the various APIs to set colors should just modify the style, rather than keeping separate foreground and background.

This would allow us to use underscore or reverse video or bold to indicate various things. It might allow one to use italics as well, if italics are available.

In some environments, we cannot use color to indicate things -- for example when dealing with a monochrome monitor, or rendering for color blind folks. It would be therefore desirable to support a SetStyle(), SetFocusedStyle(), etc. These would take just a tcell Style. Under the hood, tcell Styles should be used, and the various APIs to set colors should just modify the style, rather than keeping separate foreground and background. This would allow us to use underscore or reverse video or bold to indicate various things. It might allow one to use italics as well, if italics are available.
Poster

See #67 for a richer approach to this that would include theming.

See #67 for a richer approach to this that would include theming.
tslocum added the
enhancement
label 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.