Skip to content

Commit

Permalink
fix: update dark mode theme-color
Browse files Browse the repository at this point in the history
  • Loading branch information
PoiScript committed Jul 1, 2024
1 parent c802dd4 commit 52920fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/shared/config/theme.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export class ThemeService {
this.document.body.setAttribute("class", theme);
this.document.head
.querySelector('meta[name="theme-color"]')
?.setAttribute("content", theme === "dark" ? "#282828" : "#FFFFFF");
?.setAttribute("content", theme === "dark" ? "#202124" : "#FFFFFF");
});
}
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#FFFFFF" />
<meta name="theme-color" content="#202124" />
<link
rel="icon"
sizes="72x72"
Expand Down Expand Up @@ -85,7 +85,7 @@
document.body.setAttribute("class", isDarkMode ? "dark" : "light");
document.head
.querySelector('meta[name="theme-color"]')
.setAttribute("content", isDarkMode ? "#282828" : "#FFFFFF");
.setAttribute("content", isDarkMode ? "#202124" : "#FFFFFF");
} catch (e) {}

window.buildTime = "BUILD_TIME";
Expand Down

0 comments on commit 52920fb

Please sign in to comment.