Skip to content

fix all blind texts being dark - #4

Open
nnmrts wants to merge 1 commit into
tetraminus:mainfrom
pumpncode:fix-dark-blind-texts
Open

fix all blind texts being dark#4
nnmrts wants to merge 1 commit into
tetraminus:mainfrom
pumpncode:fix-dark-blind-texts

Conversation

@nnmrts

@nnmrts nnmrts commented Feb 20, 2026

Copy link
Copy Markdown

Problem

The loc_colour override only accepts a single parameter (key), but the vanilla function signature is loc_colour(_c, _default). When the override forwards to the original function via loc_colour_ref(key), the _default parameter is silently dropped.

The localization text parser calls loc_colour(nil, args.default_col) for text segments without an explicit color code. Without the default being forwarded, the vanilla function falls through to G.C.UI.TEXT_DARK (#4F6367) instead of the caller's intended default color.

This causes any localized text relying on the default color to render as dark gray instead of the expected color. Most visibly, blind description text, making it unreadable against the dark background.

Fix

Forward the _default parameter through the override to loc_colour_ref.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant