Bug summary
In dark mode on macOS, the window background on the Qt5 backend is correctly changed to black, but the icons are still black when they should be white:

Code for reproduction
import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
plt.figure()
plt.show()
Actual outcome
Black icons
Expected outcome
White icons
Additional information
No response
Operating system
No response
Matplotlib Version
3.9.0.dev905+gb4fc72bb88
Matplotlib Backend
Qt5Agg
Python version
3.11.6
Jupyter version
No response
Installation
git checkout