hoffstadt / hoffstadt/DearPyGui

Global themes for disabled components not working

Open
#2,068 7 comments 2 reactions 0 assignees View on GitHub
state: pending type: bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.