[PR #598] [CLOSED] Add flag selectedReverseColor to reverse style of selected item #991

Closed
opened 2026-03-04 01:08:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/598
Author: @mdom
Created: 5/11/2021
Status: Closed

Base: masterHead: selectedReverseColor


📝 Commits (5)

  • a4d742c Add flag selectedReverseColor to reverse style of selected item
  • 1405acb Update README.md
  • 3ff48db Upgraded to latest tcell version. Fixes #70
  • 8f759a0 Use styles in list.go
  • 1496747 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/598 **Author:** [@mdom](https://github.com/mdom) **Created:** 5/11/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `selectedReverseColor` --- ### 📝 Commits (5) - [`a4d742c`](https://github.com/rivo/tview/commit/a4d742c3ce6c278554f795bee90e5e7fc0560205) Add flag selectedReverseColor to reverse style of selected item - [`1405acb`](https://github.com/rivo/tview/commit/1405acb3bb34494634ed220fbcda69331c7b9385) Update README.md - [`3ff48db`](https://github.com/rivo/tview/commit/3ff48db0b58f2c636f82fa14e5a02a82b8d036cb) Upgraded to latest tcell version. Fixes #70 - [`8f759a0`](https://github.com/rivo/tview/commit/8f759a0c7a9d1244a21fe43b9c4dcabdc894176f) Use styles in list.go - [`1496747`](https://github.com/rivo/tview/commit/1496747abb5aa41c5a72e76bc2a47a5558f0f420) Add style setters ### 📊 Changes **4 files changed** (+51 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -0) 📝 `list.go` (+47 -31) </details> ### 📄 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? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:08:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#991
No description provided.