mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 16:21:27 +03:00
fixed bug where non-themed white space that appeared when file manager was expanded
This commit is contained in:
@@ -37,7 +37,7 @@ export class AppComponent implements OnInit {
|
|||||||
@ViewChild('urlinput', { read: ElementRef, static: false }) urlInput: ElementRef;
|
@ViewChild('urlinput', { read: ElementRef, static: false }) urlInput: ElementRef;
|
||||||
|
|
||||||
constructor(public postsService: PostsService, public snackBar: MatSnackBar,
|
constructor(public postsService: PostsService, public snackBar: MatSnackBar,
|
||||||
public router: Router, public overlayContainer: OverlayContainer) {
|
public router: Router, public overlayContainer: OverlayContainer, private elementRef: ElementRef) {
|
||||||
|
|
||||||
// loading config
|
// loading config
|
||||||
this.postsService.loadNavItems().subscribe(result => { // loads settings
|
this.postsService.loadNavItems().subscribe(result => { // loads settings
|
||||||
@@ -76,6 +76,7 @@ export class AppComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
localStorage.setItem('theme', theme);
|
localStorage.setItem('theme', theme);
|
||||||
|
this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = this.THEMES_CONFIG[theme]['background_color'];
|
||||||
} else {
|
} else {
|
||||||
console.error('Invalid theme: ' + theme);
|
console.error('Invalid theme: ' + theme);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user