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

@ -207,6 +207,8 @@ export abstract class EgwApp
// Highlights the favorite based on initial list state
this.highlight_favorite();
// apply theme mode
jQuery('html').attr('data-darkmode', <string> egw.preference('darkmode', 'common'));
}
/**