-
-
Notifications
You must be signed in to change notification settings - Fork 0
set_color_theme
D. Liam Mc. edited this page Jun 21, 2025
·
1 revision
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.
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.
set_color_theme("path/to/your/custom_theme.json")CustomPyQt by D. Liam Mc. 2025