hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.69k stars 669 forks source link

Get theme color/var value #1440

Closed Flowseal closed 2 years ago

Flowseal commented 2 years ago

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)

hoffstadt commented 2 years ago

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

skywolf829 commented 4 months ago

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.