Introduce dark/light mode theme switch into framework

This commit is contained in:
Hadi Nategh
2020-12-15 20:24:25 +01:00
parent 7011faba18
commit f21ac58c87
13 changed files with 143 additions and 2 deletions

View File

@ -117,6 +117,8 @@ var EgwApp = /** @class */ (function () {
this._set_Window_title();
// Highlights the favorite based on initial list state
this.highlight_favorite();
// apply theme mode
jQuery('html').attr('data-darkmode', egw.preference('darkmode', 'common'));
};
/**
* Observer method receives update notifications from all applications