How to set text color based on current theme? #4940
-
I am using Current code count := canvas.NewText("?", color.White) What I want to do count := canvas.NewText("?", app.Theme().ForegroundColor()) Note: I am not overriding the OS theme. I use the System theme as is. |
Beta Was this translation helpful? Give feedback.
Answered by
andydotxyz
Jun 14, 2024
Replies: 1 comment
-
Just use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aneeskA
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use
theme.ForegroundColor()