Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get default/system theme values #2385

Open
cwichel opened this issue Aug 27, 2024 · 2 comments
Open

Get default/system theme values #2385

cwichel opened this issue Aug 27, 2024 · 2 comments
Labels
state: pending not addressed yet

Comments

@cwichel
Copy link

cwichel commented Aug 27, 2024

Is your feature request related to a problem? Please describe.
Unable to find a reference on how to read a value from the current default/system theme. For example, I want to read the value of mvStyleVar_FramePadding

Describe the solution you'd like
If there's a method already in place, an example of how to do it.
If not, using get_item_theme(0) could return the current default/system theme dictionary from where to extract the value

Describe alternatives you've considered
None

Additional context
None

@cwichel cwichel added the state: pending not addressed yet label Aug 27, 2024
@KyleTheScientist
Copy link

I ran into this problem today! For my problem, I just wanted to know what the default background color was, so calling dpg.show_style_editor() was enough. I'm not sure what you would do if you wanted to read it dynamically.

@cwichel
Copy link
Author

cwichel commented Aug 28, 2024

@KyleTheScientist thx! I did the same, but it's not ideal... If the system is using a theme, doesn't it make sense that you can access the values directly with code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet
Projects
None yet
Development

No branches or pull requests

2 participants