Open Auorui opened 1 year ago
As per as I understand your question, you are trying to refer to the viewport background. this has not been added to the external theme of the window as this is referred by the viewport you create and is also not available in the style editor too.
So, you can set this up adding the background clear color when you create your viewport You can do this by :
dpg.create_viewport(clear_color=(250,0,0), title='Custom Title', width=1500, height=800)
and add your desired RGB color in the clear_color parameter
But this would then set up it as default and when you shift to dark theme it would automatically not change it.
But you can always configure it when the other theme is called back.
for eg :
dpg.configure_viewport( 'Custom Title', clear_color= (0, 250, 0) )
(Note : you can manually add this commands in the light and dark theme functions in the ext_theme file)
Version of Dear PyGui
Version: 1.9.1 Operating System: Windows 11
My Issue/Question
The use here is (create_theme_imgui_dark() and create_theme_imgui_light()) in (dearpygui_ext. themes), when I added (dpg. configure_app), the situation shown in the above image appeared
To Reproduce
No error
Expected behavior
This was originally only used for theme testing, so I used the theme from (dearpygui_ext. themes) first.