Go to Settings> Personalization> Themes and make sure the color is set to Automatic.
We will need to access the registry editor Windows via the command "regedit" that we type after pressing the key combination "Win + R". Once in this section, we go to the path: "HKEY_CURRENT_USERControl PanelColors".
So in the right panel we have to look for an entry called "WindowText", which will be one of the last, and if we click on it twice we will probably find that its value is "0 0 0", which is this translates into black if we speak in terms of RGB . Therefore, what we recommend is to change these three values to "130 130 130" and we can close the editor and restart the computer.
https://www.addictivetips.com/windows-tips/fix-black-text-in-file-explorer-location-bar-on-windows-10-dark-mode/
If that does not work, follow the instructions here:
https://answers.microsoft.com/en-us/windows/forum/all/windows-11-black-text-with-dark-theme/72b77bc4-23bc-4053-a3c4-831eaa152d6c
ReadOnly
attribute set?