From f06c9ba44a975b5c4a716940e7a3bfe6a5455682 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Sun, 23 Feb 2020 22:29:42 -0500 Subject: [PATCH] fixed bug where non-themed white space that appeared when file manager was expanded --- src/app/app.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9d024f7..94995d4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -37,7 +37,7 @@ export class AppComponent implements OnInit { @ViewChild('urlinput', { read: ElementRef, static: false }) urlInput: ElementRef; constructor(public postsService: PostsService, public snackBar: MatSnackBar, - public router: Router, public overlayContainer: OverlayContainer) { + public router: Router, public overlayContainer: OverlayContainer, private elementRef: ElementRef) { // loading config this.postsService.loadNavItems().subscribe(result => { // loads settings @@ -76,6 +76,7 @@ export class AppComponent implements OnInit { } } localStorage.setItem('theme', theme); + this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = this.THEMES_CONFIG[theme]['background_color']; } else { console.error('Invalid theme: ' + theme); return;