Fix text size flicker

This commit is contained in:
schmelczerandras 2020-11-19 13:14:21 +01:00
parent b7392ecbf9
commit 01c3dba7f7
3 changed files with 3 additions and 4 deletions

View file

@ -24,7 +24,7 @@ export class PageThemeSwitcher extends PageElement {
(this.htmlRoot as HTMLInputElement).checked = true;
turnOffAnimations();
turnOnDarkMode();
setTimeout(() => turnOnAnimations(), 0);
turnOnAnimations();
} else {
turnOnLightMode();
}