WARNING:root:qt_material must be imported after PySide or PyQt!
['dark_amber.xml',
'dark_blue.xml',
'dark_cyan.xml',
'dark_lightgreen.xml',
'dark_pink.xml',
'dark_purple.xml',
'dark_red.xml',
'dark_teal.xml',
'dark_yellow.xml',
'light_amber.xml',
'light_blue.xml',
'light_cyan.xml',
'light_cyan_500.xml',
'light_lightgreen.xml',
'light_pink.xml',
'light_purple.xml',
'light_red.xml',
'light_teal.xml',
'light_yellow.xml']
## Custom colors
[Color Tool](https://material.io/resources/color/) is the best way to generate new themes, just choose colors and export as `Android XML`, the theme file must look like:
```python
<!--?xml version="1.0" encoding="UTF-8"?-->
<resources>
<colorname="primaryColor">#00e5ff</color>
<colorname="primaryLightColor">#6effff</color>
<colorname="secondaryColor">#f5f5f5</color>
<colorname="secondaryLightColor">#ffffff</color>
<colorname="secondaryDarkColor">#e6e6e6</color>
<colorname="primaryTextColor">#000000</color>
<colorname="secondaryTextColor">#000000</color>
</resources>
```
Save it as `my_theme.xml` or similar and apply the style sheet from Python.
```python
apply_stylesheet(app, theme='dark_teal.xml')
```
## Light themes
Light themes will need to add `invert_secondary` argument as `True`.
Do you have a custom theme? it looks good? create a [pull request](https://github.com/UN-GCPDS/qt-material/pulls) in [themes folder](https://github.com/UN-GCPDS/qt-material/tree/master/qt_material/themes>) and share it with all users.
There is a `qt_material.QtStyleTools` class that must be inherited along to `QMainWindow` for change themes in runtime using the `apply_stylesheet()` method.
```python
class RuntimeStylesheets(QMainWindow, QtStyleTools):
A simple interface is available to modify a theme in runtime, this feature can be used to create a new theme, the theme file is created in the main directory as `my_theme.xml`
```python
class RuntimeStylesheets(QMainWindow, QtStyleTools):