hoffstadt / hoffstadt/DearPyGui
Global themes for disabled components not working
- Dominant language
- C++
- Stars
- 15.6k
- Forks
- 783
- PR merge metrics
- No merged PRs in 30d
Description
## Version of Dear PyGui
Version: 1.9.0
Operating System: All
## My Issue/Question
Global themes for disabled components not working. Enabled text color takes effect (which is also incorrect).
## Expected behavior
Input float text should be red.
## Related
https://github.com/hoffstadt/DearPyGui/issues/1401
## Standalone, minimal, complete and verifiable example
```python
import dearpygui.dearpygui as dpg
dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.theme() as global_theme:
with dpg.theme_component(dpg.mvInputFloat, enabled_state=True):
dpg.add_theme_color(dpg.mvThemeCol_Text, (255, 0, 0), category=dpg.mvThemeCat_Core)
dpg.bind_theme(global_theme)
with dpg.window(label="tutorial"):
dpg.add_input_float(label="Input float", enabled=False)
dpg.add_input_int(label="Input int", enabled=False)
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```
Contributor guide
Assessment
This issue has not been assessed yet.