So, there's no chrome.browserAction.setBadgeForegroundColor, but there's a setBadgeBackgroundColor. This was fine and my text showed up with contrast on my background color and was white. But then, somewhere along the different browser versions, the foreground color became black and I don't know why. Example:
Now, I will say that I did experiment with a dark theme in my browser briefly, but then turned that off and went back to the light theme. So, I don't know if that's the reason, or if there was a code change in Google Chrome where they decided to change how they pick the foreground color for contrast based on the background color.
Can anyone who's seen the internal code changes for chrome.browserAction explain if it was a browser change? Or, is it something I've done to my browser settings?