mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 12:39:45 +00:00
Merge pull request #2450 from TheDuffman85/develop
This commit is contained in:
commit
b5b6df5e48
@ -17,6 +17,7 @@ _This release is scheduled to be released on 2021-04-01._
|
|||||||
- Added `start:dev` command to the npm scripts for starting electron with devTools open.
|
- Added `start:dev` command to the npm scripts for starting electron with devTools open.
|
||||||
- Added logging when using deprecated modules weatherforecast or currentweather.
|
- Added logging when using deprecated modules weatherforecast or currentweather.
|
||||||
- Portuguese translations for "MODULE_CONFIG_CHANGED" and PRECIP.
|
- Portuguese translations for "MODULE_CONFIG_CHANGED" and PRECIP.
|
||||||
|
- Respect parameter ColoredSymbolOnly also for custom events
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
|
@ -277,8 +277,11 @@ Module.register("calendar", {
|
|||||||
if (typeof this.config.customEvents[ev].color !== "undefined" && this.config.customEvents[ev].color !== "") {
|
if (typeof this.config.customEvents[ev].color !== "undefined" && this.config.customEvents[ev].color !== "") {
|
||||||
needle = new RegExp(this.config.customEvents[ev].keyword, "gi");
|
needle = new RegExp(this.config.customEvents[ev].keyword, "gi");
|
||||||
if (needle.test(event.title)) {
|
if (needle.test(event.title)) {
|
||||||
|
// Respect parameter ColoredSymbolOnly also for custom events
|
||||||
|
if (!this.config.coloredSymbolOnly) {
|
||||||
eventWrapper.style.cssText = "color:" + this.config.customEvents[ev].color;
|
eventWrapper.style.cssText = "color:" + this.config.customEvents[ev].color;
|
||||||
titleWrapper.style.cssText = "color:" + this.config.customEvents[ev].color;
|
titleWrapper.style.cssText = "color:" + this.config.customEvents[ev].color;
|
||||||
|
}
|
||||||
if (this.config.displaySymbol) {
|
if (this.config.displaySymbol) {
|
||||||
symbolWrapper.style.cssText = "color:" + this.config.customEvents[ev].color;
|
symbolWrapper.style.cssText = "color:" + this.config.customEvents[ev].color;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user