Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage.

The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you select the element with your mouse):

My question: how to control the color of text in paneled boxes from a stylesheet definition cell?

The most common examples of this are:

1. White text in values of InformationPanel[title, {key->value, ...}] from GeneralUtilities (e.g. the panel used in Classify, NetTrain, Information, etc.):

1. White text in headers of datasets:

1. Linguistic assistant text:

These are just a few cases of this need to invert the white colors on white paneled or interactive backgrounds, but at least addressing these two would solve most of the problem.

What I've tried:

One really bad way to solve this is to set:

Cell[StyleData["Notebook"], FontColor->RGBColor[0, 0.7, 1]]


Which will fix the unreadable panels, but will affect all Text :(

• You need to have some box style that you can edit. Something like a class or tag in the CSS world, basically. That means you need to look into how Information makes its boxes and mess with that. Feb 17 '20 at 0:57

Editing the "DialogStyle" cell style works for the Information case. In general you need to look at where the BoxObject of interest will inherit its styles from. In this case I just did ToBoxes[Information[a]] and figured it out like that.

StyleSheetEdit[
"DialogStyle",
FontColor -> Red,
"MakeCell" -> True
]

Information[a]


• What about text in the linguistic assistant?
– M.R.
Feb 17 '20 at 1:59
• The raw text doesn't have it bound, but the NamespaceBox inherits styles it seems. Styling "LinguisticAssistant" works. I'd be careful about messing with that one, though. The Wolfram Alpha people hard coded a lot of shit. Feb 17 '20 at 2:07
• Ah and "NaturalLanguageInput"
– M.R.
Feb 17 '20 at 2:07
• Where is "NaturalLanguageInput" used? Feb 17 '20 at 2:08
• I found it by text searching in default/core/..`
– M.R.
Feb 17 '20 at 2:09