DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Color gradient on themes

Open darwinharianto opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I have been looking at color gradient lately and see how it improve user experience. I would love the same functionality on dearpygui.

Describe the solution you'd like being able to use color gradient on background color

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Image of color gradient Screenshot 2023-11-02 at 9 57 13

darwinharianto avatar Nov 02 '23 00:11 darwinharianto

DearPyGui is built on top of Dear ImGui, which does not provide any means for gradient filling in standard UI widgets. That is, it's impossible to implement gradients in buttons, input fields, etc. in DPG.

What you can do is you can use the Drawing API to create your own widgets. If I remember correctly, there's a rectangle with gradient fill based on colors of its corners; you can also use pre-cooked textures with whatever fill you want.

v-ein avatar Nov 02 '23 10:11 v-ein