DearPyGui
DearPyGui copied to clipboard
Theme Internal Tools such as File Diaog
It seems like it is impossible to theme any internal tools. I stumbled upon htis when I tried theming a file dialog.
import dearpygui.dearpygui as dpg
import dearpygui_ext.themes as dpg_ext
def main():
dpg.create_context()
dpg.bind_theme(dpg_ext.create_theme_imgui_light())
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.window():
dpg.add_text('This works')
dpg.add_file_dialog() # this doesn't
dpg.show_viewport()
while dpg.is_dearpygui_running():
dpg.render_dearpygui_frame()
dpg.destroy_context()
if __name__ == "__main__":
main()
The window is in light theme but the file dialog is still in the standard theme.
I reached out for help on the discord server and a friendly moderator told me it is not possible and I should create a feature request.