move icon registration into module level
This commit is contained in:
parent
e5c71c049e
commit
46c65e661a
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user