add assets icons use to flet web page
Browse files- app/main.py +1 -1
- assets/site.webmanifest +19 -1
app/main.py
CHANGED
|
@@ -343,4 +343,4 @@ def main(page: ft.Page):
|
|
| 343 |
|
| 344 |
if __name__ == "__main__":
|
| 345 |
port = int(os.getenv("PORT", 7860))
|
| 346 |
-
ft.app(target=main, view=ft.AppView.WEB_BROWSER, host="0.0.0.0", port=port)
|
|
|
|
| 343 |
|
| 344 |
if __name__ == "__main__":
|
| 345 |
port = int(os.getenv("PORT", 7860))
|
| 346 |
+
ft.app(target=main, view=ft.AppView.WEB_BROWSER, host="0.0.0.0", port=port, assets_dir="../assets")
|
assets/site.webmanifest
CHANGED
|
@@ -1 +1,19 @@
|
|
| 1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "Maker Station",
|
| 3 |
+
"short_name": "MakerStation",
|
| 4 |
+
"icons": [
|
| 5 |
+
{
|
| 6 |
+
"src": "/icon192x192.png",
|
| 7 |
+
"sizes": "192x192",
|
| 8 |
+
"type": "image/png"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"src": "/icon-512x512.png",
|
| 12 |
+
"sizes": "512x512",
|
| 13 |
+
"type": "image/png"
|
| 14 |
+
}
|
| 15 |
+
],
|
| 16 |
+
"theme_color": "#1a1c1e",
|
| 17 |
+
"background_color": "#1a1c1e",
|
| 18 |
+
"display": "standalone"
|
| 19 |
+
}
|