pplux / imgui-app

Dear IMGUI + Render + Window handling, amalgamation in two files ready to use
MIT License
161 stars 17 forks source link

How to access the style colors outside of the main loop Frame #5

Closed diovudau closed 1 year ago

diovudau commented 1 year ago

I want to write my own color-scheme. I imagine it is better and more efficient to change the colors directly with GetStyle().Colors[...] = ImVec4(…) I would have to access this before frame is called the first itme. But since imgui-app encapsulates the whole startup process into the single imgui_app()function I can't call GetStyle(). The error message says it needs to be called in a context, but calling CreateContext() is not the right one, correct?

So… how do I change the colors permanently without pushing onto the temporary color stack each frame. OR maybe pushing to the stack is no problem?

diovudau commented 1 year ago

Never mind.