Replymessage unavailable
You can invert the app palette with the following code before creating any widgets:
palette: QtGui.QPalette = app.palette()
cr: QtGui.QPalette.ColorRole
for cr in QtGui.QPalette.ColorRole.__members__.values():
if cr == QtGui.QPalette.ColorRole.NColorRoles:
continue
color: QtGui.QColor = palette.color(cr)
color = QtGui.QColor.fromHslF(color.hueF(), color.saturationF(), 1. - color.lightnessF())
palette.setColor(cr, color)
app.setPalette(palette)