giu icon indicating copy to clipboard operation
giu copied to clipboard

cant change bg color of a codeeditor

Open liverfail opened this issue 2 years ago • 3 comments

Related problem

there is no way to change the background color of a codeeditor

Your request

I would like a way to change the background color of the codeeditor

Alternative solution

No response

Additional context

No response

I have managed to get the codeeditor to have a darker background using g.Stack, however doing this makes the codeeditor have doubled inputs, for example: typing symbols will sometimes type them twice, single clicking will double click %90 of the time, and pressing the arrow keys to move your cursor in the textbox will always move 2 times instead of once per pressing of the key

I think I've found the problem: https://github.com/AllenDang/imgui-go/blob/59b862ca5a0cf52012c29b41c0ca17df53a50f19/TextEditor.cpp#L985C1-L985C116 image

liverfail avatar Aug 11 '23 16:08 liverfail

Code editor is not implemented at this point of migration from imgui-go to cimgui-go, so we can't resolve this issue now.

gucio321 avatar Dec 19 '23 13:12 gucio321