Rollback background blur and transparency due to high CPU/GPU usage (#1160)

This commit is contained in:
Aditya Chandel
2025-09-15 11:03:34 -06:00
committed by GitHub
parent 11935ae5a7
commit 1df21551f6
10 changed files with 49 additions and 422 deletions
-22
View File
@@ -37,7 +37,6 @@ export class AppComponent implements OnInit, OnDestroy {
private taskEventService = inject(TaskEventService);
private duplicateFileService = inject(DuplicateFileService);
private appConfigService = inject(AppConfigService); // Keep it here to ensure the service is initialized
private readonly configService = inject(AppConfigService);
ngOnInit(): void {
this.authInit.initialized$.subscribe(ready => {
@@ -102,25 +101,4 @@ export class AppComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
this.subscriptions.forEach(sub => sub.unsubscribe());
}
readonly backgroundStyle = computed(() => {
const state = this.configService.appState();
const backgroundImage = state.backgroundImage;
if (!backgroundImage) {
return 'none';
}
return `url('${backgroundImage}')`;
});
readonly blurStyle = computed(() => {
const state = this.configService.appState();
const blur = state.backgroundBlur ?? AppConfigService.DEFAULT_BACKGROUND_BLUR;
return `blur(${blur}px)`;
});
readonly showBackground = computed(() => {
const state = this.configService.appState();
return state.showBackground ?? true;
});
}