[GH-ISSUE #995] SetPlaceholderTextColor method not available for *tview.TextArea #721

Closed
opened 2026-03-04 01:07:16 +03:00 by kerem · 3 comments
Owner

Originally created by @HicaroD on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/995

Is there any good reason for this?
I want to change the color of the placeholder text from the text area, but this method is not available for some reason

Originally created by @HicaroD on GitHub (Jun 5, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/995 Is there any good reason for this? I want to change the color of the placeholder text from the text area, but this method is not available for some reason
kerem closed this issue 2026-03-04 01:07:16 +03:00
Author
Owner

@eeeXun commented on GitHub (Jun 12, 2024):

Did you try the SetPlaceholderStyle?

<!-- gh-comment-id:2162609853 --> @eeeXun commented on GitHub (Jun 12, 2024): Did you try the [`SetPlaceholderStyle`](https://pkg.go.dev/github.com/rivo/tview#InputField.SetPlaceholderStyle)?
Author
Owner

@HicaroD commented on GitHub (Jun 16, 2024):

Works perfectly. I got used to Set__TextColor method style.

Thank you!

<!-- gh-comment-id:2171580580 --> @HicaroD commented on GitHub (Jun 16, 2024): Works perfectly. I got used to `Set__TextColor` method style. Thank you!
Author
Owner

@rivo commented on GitHub (Jun 16, 2024):

The Set__Color methods are just there for backwards compatibility. At some point, only Set__Style methods were added (and will be added). They allow you to specify many more attributes, like background colour, underline/bold etc. You can even add hyperlinks if you want.

<!-- gh-comment-id:2171821924 --> @rivo commented on GitHub (Jun 16, 2024): The `Set__Color` methods are just there for backwards compatibility. At some point, only `Set__Style` methods were added (and will be added). They allow you to specify many more attributes, like background colour, underline/bold etc. You can even add hyperlinks if you want.
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#721
No description provided.