refactor: remove unused dark mode code (#2332)

This commit is contained in:
Aman Harwara
2023-05-11 19:45:10 +05:30
committed by GitHub
parent a2da22d66e
commit bcd962f150
6 changed files with 3 additions and 64 deletions

View File

@@ -249,7 +249,6 @@ export class ThemeManager extends AbstractService {
const setTheme = () => {
if (themeIdentifier === DefaultThemeIdentifier) {
toggleActiveTheme()
void this.application.setPreference(PrefKey.DarkMode, false)
} else {
const theme = themes.find((theme) => theme.package_info.identifier === themeIdentifier)
if (theme && !theme.active) {
@@ -345,8 +344,6 @@ export class ThemeManager extends AbstractService {
}
}
document.getElementsByTagName('head')[0].appendChild(link)
void this.application.setPreference(PrefKey.DarkMode, false)
}
private getBackgroundColor() {