File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ def init_fonts(self):
2121 custom_font = "AlibabaPuHuiTi Light Mac"
2222
2323 self .page .fonts = {
24- "AlibabaPuHuiTi Light" : f" { self . assets_dir } /fonts/AlibabaPuHuiTi-2/AlibabaPuHuiTi-2-45-Light.otf" ,
25- "AlibabaPuHuiTi Light Mac" : f" { self . assets_dir } /fonts/AlibabaPuHuiTi-2/AlibabaPuHuiTi-2-45-Light-Mac.otf" ,
24+ "AlibabaPuHuiTi Light" : " /fonts/AlibabaPuHuiTi-2/AlibabaPuHuiTi-2-45-Light.otf" ,
25+ "AlibabaPuHuiTi Light Mac" : " /fonts/AlibabaPuHuiTi-2/AlibabaPuHuiTi-2-45-Light-Mac.otf" ,
2626 }
2727 self .custom_font = custom_font
2828
@@ -44,7 +44,7 @@ async def update_theme_color(self, color):
4444 self .page .theme .color_scheme_seed = color
4545 self .page .theme .color_scheme = ft .ColorScheme (primary = color )
4646 self .page .update ()
47- try :
47+ try :
4848 await self .page .client_storage .set_async ("theme_color" , color )
4949 except Exception :
50- pass
50+ pass
You can’t perform that action at this time.
0 commit comments