Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant change bg color of a codeeditor #687

Open
liverfail opened this issue Aug 11, 2023 · 3 comments
Open

cant change bg color of a codeeditor #687

liverfail opened this issue Aug 11, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@liverfail
Copy link

liverfail commented Aug 11, 2023

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 liverfail added the enhancement New feature or request label Aug 11, 2023
@liverfail liverfail changed the title codeeditor color change cant change bg color of a codeeditor Aug 11, 2023
@gucio321
Copy link
Collaborator

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 gucio321 added the frozen Blocked by some other case label Dec 19, 2023
@gucio321 gucio321 removed the frozen Blocked by some other case label Nov 5, 2024
@gucio321
Copy link
Collaborator

gucio321 commented Nov 5, 2024

code editor works again.

@gucio321
Copy link
Collaborator

gucio321 commented Nov 5, 2024

ok, now we can add support for (*ImGuiColorTextEdit.TextEditor).SetPalette

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants