Change font colour style depending on background
I do several layouts with a photo as the full page background with the type in front. There are occasions when the text disappears into the background and I manually change the font colour to a contrasting colour to make it readable. The problem is if some text is then added or removed, the amended text shifts away from the original background and I have to reset that and change the new text.
My question is, is there a way to run a script or create a style that effectively says "if the background is lighter than X colour make the font colour Y but if the background is darker than X colour, make the font colour Z.
Is this possible or what do other people do - other than changing it manually?
