Skip to content

Programmatic access to colors in the current theme #5406

Answered by TomJGooding
anschweitzer asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks! What's the best practice for accessing this App.theme_variables from inside a widget?

You can simply use the app property which returns the current app - i.e. self.app.theme_variables

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@anschweitzer
Comment options

@anschweitzer
Comment options

@TomJGooding
Comment options

Answer selected by anschweitzer
@anschweitzer
Comment options

@anschweitzer
Comment options

@willmcgugan
Comment options

@anschweitzer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants