fix(jui): always use white if background is disabled in EditBox

This commit is contained in:
Sally Knight 2026-03-26 15:48:52 +03:00 committed by Tropical
parent d18733b14c
commit 9a2062c70a

View file

@ -88,7 +88,7 @@ void EditBox::render() {
if (active) {
bool renderUnderscore = inFocus && (frame / 6 % 2 == 0);
drawString(font, value + (renderUnderscore ? L"_" : L""), textX, textY,
0xe0e0e0);
(enableBackgroundDrawing ? 0xe0e0e0 : 0xffffff));
} else {
drawString(font, value, textX, textY,
(enableBackgroundDrawing ? 0xe0e0e0 : 0xffffff));