Adapt text color to background.

Whenever note is opened or note color changes,
change text color to black or white.
See #726067