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 18f8934
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 8 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.
21 changes: 21 additions & 0 deletions web/projects/shared/assets/icons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "StartOS",
"short_name": "StartOS",
"icons": [
{
"src": "/assets/icons/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/assets/icons/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
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.
18 changes: 13 additions & 5 deletions web/projects/ui/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@
<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="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#ff5b71" />
<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"
/>
<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#ff5b71" />
<meta name="apple-mobile-web-app-title" content="StartOS" />
<style>
html {
height: 100%;
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 18f8934

Please sign in to comment.