set_color_theme - Dliammc/CustomPyQt GitHub Wiki
set_color_theme(theme: str)
This method allows users to set the default color scheme of all PyCt6 widgets in a program.
You can use default color schemes built into the library which basically are .json files with specified colors for each PyCt6 widget. The default colors are "red", "orange", "yellow", "green", "blue", "purple", and "pink" each with ("light color", "dark color") themes.
Example with Default Themes
set_color_theme("green")
which causes widgets to change color from default "blue" to "green" as shown with this CButton widget
You can also load your own themes from custom .json files. Just copy one of the default .json and change the color values.
Example with Custom Theme
set_color_theme("path/to/your/custom_theme.json")