mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #475] Add example of overriding Styles to docs? #344
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#344
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 @khughitt on GitHub (Jul 18, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/475
Greetings!
In the docs for tview, it is mentioned that:
Would it be possible to expand a bit on this and provide an explicit example of how this can be achieved, either for individual colors, or for entire themes?
Apologies in advance if this is something that is trivial to do -- I'm only on day two of working with Go (and quite impressed, so far!)
I did try updating / redefining
Stylesin the global package space, but it didn't seem to have any effect. I suspect I'm just misunderstanding how scoping works with global variables or something else very basic..Any suggestions/guidance would be greatly appreciate though.
Thanks!
@khughitt commented on GitHub (Aug 3, 2020):
Never mind! I figured it out. Sure enough it was just a matter of using the proper namespacing syntax.
In case it helps anyone else, to modify a setting inside
main(), you can do something along the lines of: