add favicon

This commit is contained in:
David Rodenkirchen 2024-05-28 06:27:12 +02:00
parent 68fa2b241f
commit 57006ccc0d
2 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,7 @@ themes = [
async def on_session_start(s: rio.Session) -> None: async def on_session_start(s: rio.Session) -> None:
print(from_root("ezgg_website/assets/icons/favicon.png"))
await s.set_title("EZ GG e.V.") await s.set_title("EZ GG e.V.")
# Create the Rio app # Create the Rio app
@ -154,6 +155,7 @@ app = rio.App(
) )
], ],
theme=themes[6], theme=themes[6],
icon=from_root("ezgg_website/assets/icons/favicon.png"),
assets_dir=Path(__file__).parent / "assets", assets_dir=Path(__file__).parent / "assets",
on_session_start=on_session_start on_session_start=on_session_start
) )

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB