Add documentation for auto-change theme feature

This commit is contained in:
Alfredo Vanegas 2022-01-21 23:01:13 -06:00
parent 83146b339e
commit 98ea570473

View File

@ -29,6 +29,7 @@
- [📑 List Links](#-list-links)
- [⛈️ Weather: Api Key, Icons and Unit](#-weather-api-key-icons-and-unit)
- [💛 Colors](#-colors)
- [🌑 Auto change theme](#-auto-change-theme)
## ✨ Features
@ -230,4 +231,18 @@ In the `app.css` file you can change the variables for both themes (Dark and Lig
}
```
### 🌑 Auto change theme
The theme can be automatically changed by the OS' current theme or personalized hours
that you can change in the `config.js` file:
```js
// Autochange dark-theme (24hrs format)
autoChangeTheme: true,
changeThemeByOS: false,
changeThemeByHour: true, // If it's true, it will use the values below:
hourDarkThemeActive: '19:00', // Turn on the dark theme after this hour
hourDarkThemeInactive: '7:00', // Turn off the dark theme after this hour and before the above hour
```
![](assets/img/subheader.png)