11#include <stdio.h>
22#include <LCUI.h>
33#include <LCDesign.h>
4+ #include <lcui-router.h>
45#include <LCUI/gui/widget/textview.h>
56#include "version.h"
67#include "about.h"
@@ -14,6 +15,8 @@ void About_OnInit(LCUI_Widget w)
1415 LCUI_Widget version ;
1516 LCUI_Widget os_info ;
1617 LCUI_Widget lcui_version ;
18+ LCUI_Widget lcui_router_version ;
19+ LCUI_Widget lc_design_version ;
1720 LCUI_Widget description ;
1821 LCUI_Widget time ;
1922 LCUI_Widget meta ;
@@ -22,7 +25,9 @@ void About_OnInit(LCUI_Widget w)
2225 LCUI_Widget item ;
2326
2427 char os_info_str [32 ];
25- char lcui_version_str [32 ];
28+ char lcui_version_str [64 ];
29+ char lcui_router_version_str [64 ];
30+ char lc_design_version_str [64 ];
2631 char version_str [32 ];
2732 char time_str [64 ];
2833
@@ -41,23 +46,31 @@ void About_OnInit(LCUI_Widget w)
4146 version = LCUIWidget_New ("textview" );
4247 os_info = LCUIWidget_New ("textview" );
4348 lcui_version = LCUIWidget_New ("textview" );
49+ lcui_router_version = LCUIWidget_New ("textview" );
50+ lc_design_version = LCUIWidget_New ("textview" );
4451 description = LCUIWidget_New ("textview" );
4552 meta = LCUIWidget_New (NULL );
4653 item = LCUIWidget_New (NULL );
4754 sprintf (version_str , "Version: %s" , APP_VERSION );
4855 sprintf (time_str , "Build at: %s" , APP_BUILD_TIME );
4956 sprintf (lcui_version_str , "LCUI: %s" , LCUI_GetVersion ());
57+ sprintf (lcui_router_version_str , "LCUI Router: %s" , router_get_version ());
58+ sprintf (lc_design_version_str , "LC Design: %s" , LCDesign_GetVersion ());
5059 sprintf (os_info_str , "OS: %s" , OS_INFO );
5160 TextView_SetTextW (description , APP_DESCRIPTION );
5261 TextView_SetText (version , version_str );
5362 TextView_SetText (time , time_str );
5463 TextView_SetText (lcui_version , lcui_version_str );
64+ TextView_SetText (lcui_router_version , lcui_router_version_str );
65+ TextView_SetText (lc_design_version , lc_design_version_str );
5566 TextView_SetText (os_info , os_info_str );
5667 Widget_AddClass (item , "c-about__item" );
5768 Widget_AddClass (meta , "c-about__meta" );
5869 Widget_Append (meta , version );
5970 Widget_Append (meta , time );
6071 Widget_Append (meta , lcui_version );
72+ Widget_Append (meta , lcui_router_version );
73+ Widget_Append (meta , lc_design_version );
6174 Widget_Append (meta , os_info );
6275 Widget_Append (item , description );
6376 Widget_Append (item , meta );
0 commit comments