Trigger to change the color of multiple objects

Greetings. For example, I use a theme with a light background during the day, and at night I use a dark background. And I need to switch all objects such as text from white to black (like dark tiles in maps).

I could select each text separately and assign each to change its color, but then there can be a lot of conditions. How to combine and invert the text of the entire panel at once? Can you create such a trigger?