Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make theme default to system on initial launch on iOS #7802

Open
wants to merge 1 commit into
base: dev-mail
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/common/gui/ThemeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ export class ThemeController {

// We also don't need to save anything in this case
await this.applyCustomizations(parsedTheme, false)
// If it's a first start we might get a fallback theme from native. We can apply it for a short time but we should switch to the full, resolved
// theme after that.
await this.setThemePreference((await this.themeFacade.getThemePreference()) ?? this._themePreference)
} else {
await this.reloadTheme()
}

// If it's a first start we might get a fallback theme from native. We can apply it for a short time but we should switch to the full, resolved
// theme after that.
await this.setThemePreference((await this.themeFacade.getThemePreference()) ?? this._themePreference)
}
}

Expand Down
Loading