add theme 1
This commit is contained in:
parent
1831149e4c
commit
5dd65c82ed
@ -7,11 +7,24 @@ import rio
|
|||||||
from . import pages
|
from . import pages
|
||||||
from . import components as comps
|
from . import components as comps
|
||||||
|
|
||||||
theme = rio.Theme.from_colors(
|
themes = [
|
||||||
primary_color=rio.Color.from_hex("01dffdff"),
|
rio.Theme.from_colors(
|
||||||
secondary_color=rio.Color.from_hex("0083ffff"),
|
primary_color=rio.Color.from_hex("ff800d"),
|
||||||
|
secondary_color=rio.Color.from_hex("ae5714"),
|
||||||
|
background_color=rio.Color.from_hex("090021"),
|
||||||
|
hud_color=rio.Color.from_hex("2c2340"),
|
||||||
|
text_color=rio.Color.from_hex("fefefe"),
|
||||||
|
light=False,
|
||||||
|
),
|
||||||
|
rio.Theme.from_colors(
|
||||||
|
primary_color=rio.Color.from_hex("ff800d"),
|
||||||
|
secondary_color=rio.Color.from_hex("ae5714"),
|
||||||
|
background_color=rio.Color.from_hex("090021"),
|
||||||
|
hud_color=rio.Color.from_hex("2c2340"),
|
||||||
|
text_color=rio.Color.from_hex("fefefe"),
|
||||||
light=False,
|
light=False,
|
||||||
)
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
async def on_session_start(s: rio.Session) -> None:
|
async def on_session_start(s: rio.Session) -> None:
|
||||||
@ -27,7 +40,7 @@ app = rio.App(
|
|||||||
build=pages.Home,
|
build=pages.Home,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
theme=theme,
|
theme=themes[0],
|
||||||
assets_dir=Path(__file__).parent / "assets",
|
assets_dir=Path(__file__).parent / "assets",
|
||||||
on_session_start=on_session_start
|
on_session_start=on_session_start
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user