From 46c65e661aac2d377208ff241b5d71fc6b31dad3 Mon Sep 17 00:00:00 2001 From: David Rodenkirchen Date: Mon, 27 May 2024 12:43:31 +0200 Subject: [PATCH] move icon registration into module level --- ezgg_website/__init__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ezgg_website/__init__.py b/ezgg_website/__init__.py index 8471310..f8b2345 100644 --- a/ezgg_website/__init__.py +++ b/ezgg_website/__init__.py @@ -9,6 +9,12 @@ from . import pages from . import components as comps from . import services +rio.Icon.register_single_icon( + set_name="custom", + icon_name="steam", + icon_source=from_root("ezgg_website/assets/icons/steam.svg") +) + themes = [ # Grey/Purple rio.Theme.from_colors( @@ -100,11 +106,6 @@ themes = [ async def on_session_start(s: rio.Session) -> None: await s.set_title("EZ GG e.V.") - rio.Icon.register_single_icon( - set_name="custom", - icon_name="steam", - icon_source=from_root("ezgg_website/assets/icons/steam.svg") - ) # Create the Rio app app = rio.App(