Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Apr 10, 2019
1 parent 0731701 commit 10c5a02
Show file tree
Hide file tree
Showing 26 changed files with 1,979 additions and 1,920 deletions.
1,036 changes: 519 additions & 517 deletions demos/assets.c

Large diffs are not rendered by default.

392 changes: 196 additions & 196 deletions demos/assets/inc/ui/auto_play.data

Large diffs are not rendered by default.

396 changes: 198 additions & 198 deletions demos/assets/inc/ui/auto_play_landscape.data

Large diffs are not rendered by default.

394 changes: 197 additions & 197 deletions demos/assets/inc/ui/auto_play_portrait.data

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions demos/assets/inc/ui/back_to_home.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
const unsigned char ui_back_to_home[] TK_CONST_DATA_ALIGN = {
0x04,0x00,0x01,0x01,0x0c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x61,0x63,0x6b,0x5f,0x74,0x6f,0x5f,
0x68,0x6f,0x6d,0x65,0x00,0x64,0x61,0x74,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x64,0x69,0x61,0x6c,0x6f,0x67,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,
0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x63,0x2c,
0x79,0x3d,0x6d,0x2c,0x77,0x3d,0x38,0x30,0x25,0x2c,0x68,0x3d,0x31,0x36,0x30,0x29,0x00,0x74,0x68,0x65,
0x6d,0x65,0x00,0x64,0x69,0x61,0x6c,0x6f,0x67,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x63,0x75,0x73,0x74,
0x6f,0x6d,0x00,0x68,0x69,0x67,0x68,0x6c,0x69,0x67,0x68,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,
0x28,0x61,0x6c,0x70,0x68,0x61,0x3d,0x34,0x30,0x29,0x00,0x00,0x64,0x69,0x61,0x6c,0x6f,0x67,0x5f,0x74,
0x69,0x74,0x6c,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,
0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,
0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,0x29,
0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x63,0x75,0x73,0x74,0x6f,0x6d,0x00,0x74,0x65,0x78,0x74,0x00,0x48,
0x65,0x6c,0x6c,0x6f,0x20,0x41,0x57,0x54,0x4b,0x00,0x00,0x00,0x64,0x69,0x61,0x6c,0x6f,0x67,0x5f,0x63,
0x6c,0x69,0x65,0x6e,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0xe2,0xff,0xff,0xff,
0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,
0x78,0x3d,0x30,0x2c,0x79,0x3d,0x62,0x6f,0x74,0x74,0x6f,0x6d,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,
0x68,0x3d,0x2d,0x33,0x30,0x29,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x63,0x75,0x73,0x74,0x6f,0x6d,0x00,
0x00,0x6c,0x61,0x62,0x65,0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xc8,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,
0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x63,0x65,0x6e,0x74,0x65,0x72,0x2c,0x79,0x3d,
0x6d,0x69,0x64,0x64,0x6c,0x65,0x3a,0x2d,0x32,0x30,0x2c,0x77,0x3d,0x32,0x30,0x30,0x2c,0x68,0x3d,0x33,
0x30,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x63,0x6b,0x20,0x54,0x6f,0x20,0x48,0x6f,0x6d,0x65,
0x3f,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,
0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x31,0x30,0x2c,0x79,0x3d,0x62,
0x6f,0x74,0x74,0x6f,0x6d,0x3a,0x31,0x30,0x2c,0x77,0x3d,0x34,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,0x29,
0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x67,0x72,0x65,0x65,0x6e,0x5f,0x62,0x74,0x6e,0x00,0x6e,0x61,0x6d,
0x65,0x00,0x71,0x75,0x69,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0xe7,0xa1,0xae,0xe5,0xae,0x9a,0x00,0x00,
0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x28,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,
0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x72,0x69,0x67,0x68,0x74,0x3a,0x31,0x30,0x2c,
0x79,0x3d,0x62,0x6f,0x74,0x74,0x6f,0x6d,0x3a,0x31,0x30,0x2c,0x77,0x3d,0x34,0x30,0x25,0x2c,0x68,0x3d,
0x33,0x30,0x29,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x72,0x65,0x64,0x5f,0x62,0x74,0x6e,0x00,0x6e,0x61,
0x6d,0x65,0x00,0x71,0x75,0x69,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0xe5,0x8f,0x96,0xe6,0xb6,0x88,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*828*/
396 changes: 198 additions & 198 deletions demos/assets/inc/ui/slide_view_h.data

Large diffs are not rendered by default.

391 changes: 196 additions & 195 deletions demos/assets/inc/ui/slide_view_h_loop.data

Large diffs are not rendered by default.

392 changes: 196 additions & 196 deletions demos/assets/inc/ui/slide_view_v.data

Large diffs are not rendered by default.

389 changes: 195 additions & 194 deletions demos/assets/inc/ui/slide_view_v_loop.data

Large diffs are not rendered by default.

47 changes: 23 additions & 24 deletions demos/assets/inc/ui/tab_control.data
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
const unsigned char ui_tab_control[] TK_CONST_DATA_ALIGN = {
0x04,0x00,0x01,0x01,0x6c,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x61,0x62,0x5f,0x63,0x6f,0x6e,0x74,
0x04,0x00,0x01,0x01,0x57,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x61,0x62,0x5f,0x63,0x6f,0x6e,0x74,
0x72,0x6f,0x6c,0x00,0x64,0x61,0x74,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x6e,0x69,0x6d,
0x5f,0x68,0x69,0x6e,0x74,0x00,0x68,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x65,0x00,0x63,0x68,0x69,
0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,
0x28,0x63,0x3d,0x32,0x2c,0x68,0x3d,0x33,0x30,0x2c,0x6d,0x3d,0x35,0x2c,0x73,0x3d,0x35,0x29,0x00,0x00,
0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x68,0x69,0x6c,
0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,
0x63,0x3d,0x32,0x2c,0x68,0x3d,0x33,0x30,0x2c,0x6d,0x3d,0x35,0x2c,0x73,0x3d,0x35,0x29,0x00,0x00,0x62,
0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,
0x62,0x5f,0x74,0x6f,0x70,0x00,0x74,0x65,0x78,0x74,0x00,0x54,0x6f,0x70,0x00,0x00,0x00,0x62,0x75,0x74,
0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,
0x5f,0x74,0x6f,0x70,0x00,0x74,0x65,0x78,0x74,0x00,0x54,0x6f,0x70,0x00,0x00,0x00,0x62,0x75,0x74,0x74,
0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,0x5f,0x62,
0x6f,0x74,0x74,0x6f,0x6d,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x6f,0x74,0x74,0x6f,0x6d,0x00,0x00,0x00,
0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,0x5f,0x62,0x6f,
0x74,0x74,0x6f,0x6d,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x6f,0x74,0x74,0x6f,0x6d,0x00,0x00,0x00,0x62,
0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,
0x62,0x5f,0x74,0x6f,0x70,0x5f,0x63,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0x54,
0x6f,0x70,0x20,0x43,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,
0x5f,0x74,0x6f,0x70,0x5f,0x63,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0x54,0x6f,
0x70,0x20,0x43,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,0x5f,0x62,0x6f,0x74,0x74,0x6f,
0x6d,0x5f,0x63,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x6f,0x74,0x74,0x6f,
0x6d,0x20,0x43,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,0x5f,0x6c,0x69,0x73,0x74,0x00,0x74,
0x65,0x78,0x74,0x00,0x4c,0x69,0x73,0x74,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,
0x6e,0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,0x5f,0x62,0x6f,0x74,0x74,0x6f,0x6d,
0x5f,0x63,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x6f,0x74,0x74,0x6f,0x6d,
0x20,0x43,0x6f,0x6d,0x70,0x61,0x63,0x74,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,
0x61,0x6d,0x65,0x00,0x63,0x6c,0x6f,0x73,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x6c,0x6f,0x73,0x65,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*668*/
0x61,0x6d,0x65,0x00,0x6f,0x70,0x65,0x6e,0x3a,0x74,0x61,0x62,0x5f,0x6c,0x69,0x73,0x74,0x00,0x74,0x65,
0x78,0x74,0x00,0x4c,0x69,0x73,0x74,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x61,
0x6d,0x65,0x00,0x63,0x6c,0x6f,0x73,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x6c,0x6f,0x73,0x65,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*647*/
Binary file modified demos/assets/raw/ui/auto_play.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/auto_play_landscape.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/auto_play_portrait.bin
Binary file not shown.
Binary file added demos/assets/raw/ui/back_to_home.bin
Binary file not shown.
9 changes: 9 additions & 0 deletions demos/assets/raw/ui/back_to_home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<dialog theme="dialog" style="custom" highlight="default(alpha=40)"
x="c" y="m" w="80%" h="160">
<dialog_title style="custom" x="0" y="0" w="100%" h="30" text="Hello AWTK" />
<dialog_client style="custom" x="0" y="bottom" w="100%" h="-30">
<label x="center" y="middle:-20" w="200" h="30" text="Back To Home?"/>
<button style="green_btn" name="quit" x="10" y="bottom:10" w="40%" h="30" text="确定"/>
<button style="red_btn" name="quit" x="right:10" y="bottom:10" w="40%" h="30" text="取消"/>
</dialog_client>
</dialog>
4 changes: 2 additions & 2 deletions demos/assets/raw/ui/slide_view.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<image draw_type="icon" x="center" y="top" w="100%" h="80%" image="message" />
<label x="center" y="bottom" w="100%" h="30%" text="Close" />
</button>
<button name="btn02" style="grid_item">
<button name="open:back_to_home" style="grid_item">
<image draw_type="icon" x="center" y="top" w="100%" h="80%" image="message" />
<label x="center" y="bottom" w="100%" h="30%" text="0.2" />
<label x="center" y="bottom" w="100%" h="30%" text="Home" />
</button>
<button name="btn03" style="grid_item">
<image draw_type="icon" x="center" y="top" w="100%" h="80%" image="message" />
Expand Down
Binary file modified demos/assets/raw/ui/slide_view_h.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/slide_view_h_loop.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/slide_view_v.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/slide_view_v_loop.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/tab_bottom.bin
Binary file not shown.
Binary file modified demos/assets/raw/ui/tab_control.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion demos/assets/raw/ui/tab_control.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<window anim_hint="htranslate" children_layout="default(c=2,h=30,m=5,s=5)">
<window children_layout="default(c=2,h=30,m=5,s=5)">
<button name="open:tab_top" text="Top"/>
<button name="open:tab_bottom" text="Bottom"/>
<button name="open:tab_top_compact" text="Top Compact"/>
Expand Down
Binary file modified demos/assets/raw/ui/tab_top.bin
Binary file not shown.
1 change: 1 addition & 0 deletions demos/assets/raw/ui/view_message.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<view w="100%" h="100%">
<label x="c" y="m" w="100%" h="60" text="Message" />
<button name="close" x="c" y="bottom:100" w="80" h="40" text="Close" />
<button name="open:back_to_home" x="c" y="m" w="80" h="40" text="Home" />
</view>
7 changes: 5 additions & 2 deletions demos/demo_ui_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ static void open_window(const char* name, widget_t* to_close) {
install_click_hander(win);

if (tk_str_eq(widget_get_type(win), WIDGET_TYPE_DIALOG)) {
dialog_modal(win);
/*window_manager_back_to_home(window_manager());*/
int32_t ret = dialog_modal(win);

if (tk_str_eq(win->name, "back_to_home") && ret == 0) {
window_manager_back_to_home(window_manager());
}
}
}

Expand Down

0 comments on commit 10c5a02

Please sign in to comment.