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 theme color/var value #1440

Closed
Flowseal opened this issue Nov 21, 2021 · 2 comments
Closed

Get theme color/var value #1440

Flowseal opened this issue Nov 21, 2021 · 2 comments
Labels
state: ready Fixed/Added and will be present in an upcoming release type: improvement improvements or optimizations are needed

Comments

@Flowseal
Copy link

Is your feature request related to a problem? Please describe.
It's unavaliable to get theme color/var value

Describe the solution you'd like

Method to get color/var value:
dpg.get_theme_var/color with (target, category, optional: item)

@Flowseal Flowseal added the state: pending not addressed yet label Nov 21, 2021
@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release type: improvement improvements or optimizations are needed and removed state: pending not addressed yet labels Nov 22, 2021
@hoffstadt
Copy link
Owner

This is added in the next release. get_item_configuration(...) will show this.

@skywolf829
Copy link

Still a little unclear how to get a theme color. For example I'm loading some icon PNGs and I want to set the non-transparent pixels to be the same color as the theme text. I'm just using the default theme and haven't changed anything, but I'd the PNG color to change if we change the theme colors later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: ready Fixed/Added and will be present in an upcoming release type: improvement improvements or optimizations are needed
Projects
None yet
Development

No branches or pull requests

3 participants