readme changes

This commit is contained in:
Tom Schimansky 2021-03-05 23:09:14 +01:00
parent cbb9a4c17a
commit d81c1a3ead

View File

@ -263,10 +263,17 @@ bg_color | background color, tuple: (light_color, dark_color) or single color
</details> </details>
### Special commands ### Special commands
Change appearance mode:
```python
customtkinter.set_appearance_mode("Light")
customtkinter.set_appearance_mode("Dark")
customtkinter.set_appearance_mode("System") # macOS only
print(customtkinter.get_appearance_mode())
```
Use macOS darkmode window style: Use macOS darkmode window style:
```python ```python
import customtkinter
customtkinter.enable_macos_darkmode() # get darkmode window style customtkinter.enable_macos_darkmode() # get darkmode window style
customtkinter.disable_macos_darkmode() # disable darkmode (important!) customtkinter.disable_macos_darkmode() # disable darkmode (important!)
``` ```