mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #947] SetLabelColor on Button appears to be not working? #694
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#694
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?
Originally created by @tlafebre on GitHub (Feb 8, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/947
Hello,
Please consider the simplified example below.
I want to change the color of "otherButton" if "button" is pressed. Pressing the "button" doesn't change the Label color of the "otherButton".
otherButton.SetLabel will change the text of the button however... What am I missing?
Thanks in advance!
@rivo commented on GitHub (Mar 7, 2024):
When I'm trying your code, it does what it's supposed to do:
After pressing Enter
otherButtonis the same text ("Other") but with a red label.So I'm not sure what you're seeing on your end. Can you run this exact code and send a screenshot?
@dustinmichels commented on GitHub (Jan 30, 2025):
Hello Rivo!! I love this library. I am also having trouble with buttons. Working with a
tview.Button, it seems that these methods do work:SetLabelColorActivatedSetBackgroundColorActivatedBut these do not:
SetLabelColorSetBackgroundColorHere is complete sample code: