Skip to content

UI: Automatic color contrast correction#3335

Open
viklequick wants to merge 5 commits into
elfmz:masterfrom
viklequick:automatic-color-contrast-correction
Open

UI: Automatic color contrast correction#3335
viklequick wants to merge 5 commits into
elfmz:masterfrom
viklequick:automatic-color-contrast-correction

Conversation

@viklequick

Copy link
Copy Markdown
Contributor

The problem: for many cases, especially for default theme, the texts are taintly readable. Classic example: disabled text in edit boxes is displayed as "cyan/light green background. light gray text". As te result, it cannot be readed.

The solution: using computations in LAB colorspace, and using CIEDE2000 delta-E checks, adjust colors slightly, without change of colors itself but luminance.

image

Left side has no corrections, disabled texts are unreadable; right side the same but after slight adjustment of luminance.

By default, it works for all themes and adjusts the palette only once, when theme or colors are being loaded from farcolors.ini.

Comment thread far2l/src/cfg/config.cpp
@viklequick viklequick changed the title Automatic color contrast correction UI: Automatic color contrast correction Apr 23, 2026
@akruphi

akruphi commented May 10, 2026

Copy link
Copy Markdown
Contributor

@elfmz вроде дельный PR - интересная фича и полностью опционально вкл/выкл. Или есть что-то препятствующее его принятию?

@viklequick

Copy link
Copy Markdown
Contributor Author

Как вариант -- можно дефолтную тему переделать. Как минимум убрать светло-циано-зеленый фон у edit fields, и желтый у "горячих клавиш" на сером.

Но на это нужно волюнтаристское решение ;-)

А тут математика чуть-чуть подтягивает цвета. Зато с виду незаметно что что-то меняется.

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.

2 participants