Skip to content

Commit

Permalink
Adapt favicon to user theme
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lt committed Feb 21, 2024
1 parent 0c22f38 commit 79f9752
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"main": "src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"assets": ["src/assets"],
"styles": ["src/styles.css", "node_modules/highlight.js/styles/github.css"],
"scripts": []
},
Expand Down
Binary file added src/assets/favicon-dark.ico
Binary file not shown.
Binary file added src/assets/favicon-light.ico
Binary file not shown.
13 changes: 13 additions & 0 deletions src/assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/favicon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<title>OpenWorkers</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="icon" href="assets/favicon-dark.ico" media="(prefers-color-scheme: dark)" sizes="64x64" />
<link rel="icon" href="assets/favicon-light.ico" media="(prefers-color-scheme: light)" sizes="64x64" />
<link rel="icon" href="assets/favicon.svg" />
</head>
<body>
<main></main>
Expand Down

0 comments on commit 79f9752

Please sign in to comment.