Add `text_color` helper for tab contents (#14737)

This PR adds a `text_color` method to `TabContentParams` to more easily
compute the text color to be used for tab contents.

This consolidates a number of conditionals that were scattered all over
the place to give us a singular source of truth for these colors.

Release Notes:

- N/A
24d9374744Marshall Bowers committed on 7/18/2024, 1:27:05 PM· committed by GitHubparent5d751f2
6 files changedLine totals unavailable