mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
[PM-5539] Migrate ThemingService (#8219)
* Update ThemingService * Finish ThemingService * Lint * More Tests & Docs * Refactor to ThemeStateService * Rename File * Fix Import * Remove `type` added to imports * Update InitServices * Fix Test * Remove Unreferenced Code * Remove Unneeded Null Check * Add Ticket Link * Add Back THEMING_DISK * Fix Desktop * Create SYSTEM_THEME_OBSERVABLE * Fix Browser Injection * Update Desktop Manual Access * Fix Default Theme * Update Test
This commit is contained in:
@@ -246,8 +246,7 @@ export class WindowMain {
|
||||
// Retrieve the background color
|
||||
// Resolves background color missmatch when starting the application.
|
||||
async getBackgroundColor(): Promise<string> {
|
||||
const data: { theme?: string } = await this.storageService.get("global");
|
||||
let theme = data?.theme;
|
||||
let theme = await this.storageService.get("global_theming_selection");
|
||||
|
||||
if (theme == null || theme === "system") {
|
||||
theme = nativeTheme.shouldUseDarkColors ? "dark" : "light";
|
||||
|
||||
Reference in New Issue
Block a user