mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[PR #598] [CLOSED] Add flag selectedReverseColor to reverse style of selected item #991
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#991
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/598
Author: @mdom
Created: 5/11/2021
Status: ❌ Closed
Base:
master← Head:selectedReverseColor📝 Commits (5)
a4d742cAdd flag selectedReverseColor to reverse style of selected item1405acbUpdate README.md3ff48dbUpgraded to latest tcell version. Fixes #708f759a0Use styles in list.go1496747Add style setters📊 Changes
4 files changed (+51 additions, -32 deletions)
View changed files
📝
README.md(+1 -0)📝
go.mod(+1 -1)📝
go.sum(+2 -0)📝
list.go(+47 -31)📄 Description
I'm working on xterm with disabled color support. This patch allows me to see the currently selected item in a list. This is probably not a good solution, there are surley be other widgets with similar problems. But i just wanted to see if the reverse code worked.
What do you think about adding a api, where i can just set styles directly for elements? Like SetSelectedStyle, SetBorderStyle, etc?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.