Skip to content

Commit

Permalink
feat: make favicon react to theme
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Nov 12, 2024
1 parent c088ab7 commit 1ceed7c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 7 deletions.
Binary file removed web/projects/shared/assets/icon/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/projects/shared/assets/icons/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions web/projects/shared/assets/icons/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 12 additions & 4 deletions web/projects/ui/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@
/>
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />

<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico" />
<link
rel="icon"
type="image/png"
href="/assets/icons/favicon-96x96.png"
sizes="96x96"
/>
<link rel="icon" type="image/svg+xml" href="/assets/icons/favicon.svg" />
<link rel="shortcut icon" href="/assets/icons/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="256x256"
href="assets/img/icon_apple_touch.png"
sizes="180x180"
href="/assets/icons/apple-touch-icon.png"
/>
<meta name="apple-mobile-web-app-title" content="StartOS" />

<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#ff5b71" />
<style>
Expand Down
12 changes: 9 additions & 3 deletions web/projects/ui/src/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
"id": "/?version=036",
"icons": [
{
"src": "assets/img/icon.png",
"sizes": "256x256",
"src": "/assets/icons/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/assets/icons/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
}
]
],
}

0 comments on commit 1ceed7c

Please sign in to comment.