set_appearance_mode - Dliammc/CustomPyQt GitHub Wiki

set_appearance_mode(mode: str)

This is a method that sets which color will be picked from tuple colors, if the color is specified as a tuple color. The mode options are "light", "dark", and "system". The "system" mode automatically matches the default mode of the operating system.

set_appearance_mode("system") #default
set_appearance_mode("light") 
set_appearance_mode("dark")