Add documentation for auto-change theme feature
This commit is contained in:
parent
83146b339e
commit
98ea570473
15
README.md
15
README.md
@ -29,6 +29,7 @@
|
|||||||
- [📑 List Links](#-list-links)
|
- [📑 List Links](#-list-links)
|
||||||
- [⛈️ Weather: Api Key, Icons and Unit](#️-weather-api-key-icons-and-unit)
|
- [⛈️ Weather: Api Key, Icons and Unit](#️-weather-api-key-icons-and-unit)
|
||||||
- [💛 Colors](#-colors)
|
- [💛 Colors](#-colors)
|
||||||
|
- [🌑 Auto change theme](#-auto-change-theme)
|
||||||
|
|
||||||
|
|
||||||
## ✨ Features
|
## ✨ 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
|
||||||
|
```
|
||||||
|
|
||||||

|

|
Loading…
x
Reference in New Issue
Block a user