|
@@ -118,14 +118,14 @@ demo_n=0
|
|
pressTime=0
|
|
pressTime=0
|
|
systemRunNum=0
|
|
systemRunNum=0
|
|
|
|
|
|
-image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
|
|
|
|
|
|
+image.load_freetype("/root/preset/fonts/simhei.ttf")
|
|
def screenFirstPage():
|
|
def screenFirstPage():
|
|
from maix import display,image,camera
|
|
from maix import display,image,camera
|
|
global splash,title_logo_text,btn_col,btn_row,splash_text,txt_unselected,txt_selected,btn_selected,btn_unselected,\
|
|
global splash,title_logo_text,btn_col,btn_row,splash_text,txt_unselected,txt_selected,btn_selected,btn_unselected,\
|
|
splash_theme_color,btn_height,btn_width,main_title,menuSelect,gc_log,demo_i,demo_j,demo_m,demo_n,screenShow,img_drop,\
|
|
splash_theme_color,btn_height,btn_width,main_title,menuSelect,gc_log,demo_i,demo_j,demo_m,demo_n,screenShow,img_drop,\
|
|
frostedGlass
|
|
frostedGlass
|
|
gc_log()
|
|
gc_log()
|
|
- image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
|
|
|
|
|
|
+ image.load_freetype("/root/preset/fonts/simhei.ttf")
|
|
splash.clear()
|
|
splash.clear()
|
|
splash.draw_rectangle(0,0,320,320,color=splash_theme_color,thickness=-1)
|
|
splash.draw_rectangle(0,0,320,320,color=splash_theme_color,thickness=-1)
|
|
splash.draw_image(title_logo_text, btn_col[0]+16, 10)
|
|
splash.draw_image(title_logo_text, btn_col[0]+16, 10)
|
|
@@ -173,7 +173,7 @@ splash_theme_color,btn_height,btn_width,main_title,demoSelect,gc_log,color_splas
|
|
color_white,color_gray,color_orange,color_red,iconUpNp,iconUpP,iconDownNp,iconDownP,demoListText,screenShow,img_drop,\
|
|
color_white,color_gray,color_orange,color_red,iconUpNp,iconUpP,iconDownNp,iconDownP,demoListText,screenShow,img_drop,\
|
|
frostedGlass
|
|
frostedGlass
|
|
gc_log()
|
|
gc_log()
|
|
- image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
|
|
|
|
|
|
+ image.load_freetype("/root/preset/fonts/simhei.ttf")
|
|
splash.clear()
|
|
splash.clear()
|
|
splash.draw_rectangle(0,0,320,240,color=splash_theme_color,thickness=-1)
|
|
splash.draw_rectangle(0,0,320,240,color=splash_theme_color,thickness=-1)
|
|
splash.draw_rectangle(0,0,320,32,color=color_blue,thickness=-1)
|
|
splash.draw_rectangle(0,0,320,32,color=color_blue,thickness=-1)
|
|
@@ -226,7 +226,7 @@ def systemPage():
|
|
splash_theme_color,btn_height,btn_width,main_title,demoSelect,gc_log,color_splash_theme,color_blue,color_blue_lighter,\
|
|
splash_theme_color,btn_height,btn_width,main_title,demoSelect,gc_log,color_splash_theme,color_blue,color_blue_lighter,\
|
|
color_white,color_gray,color_orange,color_red,iconUpNp,iconUpP,iconDownNp,iconDownP,demoListText,screenShow,img_drop,\
|
|
color_white,color_gray,color_orange,color_red,iconUpNp,iconUpP,iconDownNp,iconDownP,demoListText,screenShow,img_drop,\
|
|
frostedGlass
|
|
frostedGlass
|
|
- image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
|
|
|
|
|
|
+ image.load_freetype("/root/preset/fonts/simhei.ttf")
|
|
for i in range(10):
|
|
for i in range(10):
|
|
splash.draw_image(frostedGlass, 0, 0,alpha=0.2)
|
|
splash.draw_image(frostedGlass, 0, 0,alpha=0.2)
|
|
#screenShow()
|
|
#screenShow()
|