Latest post of the previous page:
Taciturn wrote: Thu 14 Dec, 2023 21:57 не мог кто-нибудь объяснить, а зачем это изменение вообще было нужно?
DrKnS wrote: What actually happened here and why:
In files highlighting it is sometimes useful to not override specific colors.
E.g. you might want your archives to be magenta and your executables green, but you probably want both of them yellow when selected.
For this purpose files highlighting supports a special "color" - black on black, which basically means "please leave it as is".
Because, well, black on black isn't really readable and thus isn't useful for highlighting on its own.
This is how it was back in 2000 or so.
A few years later, around 2006, we added transparency to files highlighting, so that foreground and background could be overridden or inherited separately.
Several more years later, in 2018 or so, we changed the default highlighting rules to use transparent colors where appropriate instead of black on black, to make things more flexible and easier to manage.
Black on black logic, of course, stayed in the code for compatibility reasons.
Recently it was discovered that this logic is way too greedy: it applies to all black on black colors, ignoring transparency.
It was completely fine back in the day when transparency didn't exist, but it's not fine now, because, say, opaque black on transparent black might get resolved to black on yellow or black on white or whatever, which could be perfectly readable, useful and might actually be what the user intended.
In other words, it's a bug.
It can be reproduced easily in Far 6207:
After these steps one might expect "black on blue", because background is not overridden.
- open files highlighting
- create a new rule
- go to normal file name
- enable Foreground
- Ok
Even preview in the color picker shows black on blue.
But it's not black on blue.
It's actually aqua on blue.
And it's confusing.
6208 fixed this particular bug by restricting the black on black logic to fully opaque colors.
As mentioned earlier, black on black is not used in out-of-the-box settings for years.
If you are affected by this change, your settings are likely quite old.
We try to make upgrades as smooth as possible, but we cannot cover every existing combination since the inception of this project.
Thanks for understanding.