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?
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 singleimgui_app()
function I can't callGetStyle()
. 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?