Merge branch 'Branch_S550_GUI' of 192.168.6.216:/linux-em-group/s530-ntk into branch_s550_gui_debug
This commit is contained in:
commit
f307b3bc13
|
@ -1034,8 +1034,7 @@
|
||||||
},
|
},
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_color": "0x31404f",
|
"text_color": "0x31404f",
|
||||||
"text_sel_bg_color": "0x00b495",
|
"text_sel_bg_color": "0x00b495"
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 0
|
"state": 0
|
||||||
|
@ -1044,8 +1043,7 @@
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_color": "0xffffff",
|
"text_color": "0xffffff",
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 1
|
"state": 1
|
||||||
|
@ -1053,8 +1051,7 @@
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 2
|
"state": 2
|
||||||
|
@ -1062,24 +1059,21 @@
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 3
|
"state": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 4
|
"state": 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 5
|
"state": 5
|
||||||
|
@ -1088,8 +1082,7 @@
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_color": "0x888888",
|
"text_color": "0x888888",
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 6
|
"state": 6
|
||||||
|
@ -1187,8 +1180,7 @@
|
||||||
},
|
},
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_color": "0x31404f",
|
"text_color": "0x31404f",
|
||||||
"text_sel_bg_color": "0x00b495",
|
"text_sel_bg_color": "0x00b495"
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 0
|
"state": 0
|
||||||
|
@ -1197,8 +1189,7 @@
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_color": "0xffffff",
|
"text_color": "0xffffff",
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 1
|
"state": 1
|
||||||
|
@ -1206,8 +1197,7 @@
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 2
|
"state": 2
|
||||||
|
@ -1215,24 +1205,21 @@
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_font": "montserrat 16 4bpp",
|
"text_font": "montserrat 16 4bpp",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 3
|
"state": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 4
|
"state": 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 5
|
"state": 5
|
||||||
|
@ -1240,8 +1227,7 @@
|
||||||
{
|
{
|
||||||
"Text": {
|
"Text": {
|
||||||
"text_color": "0x888888",
|
"text_color": "0x888888",
|
||||||
"text_sel_bg_color": "0x01a2b1",
|
"text_sel_bg_color": "0x01a2b1"
|
||||||
"text_sel_color": "0x3b3e42"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 6
|
"state": 6
|
||||||
|
|
|
@ -1707,7 +1707,7 @@
|
||||||
"X": 0,
|
"X": 0,
|
||||||
"Y": 0
|
"Y": 0
|
||||||
},
|
},
|
||||||
"source": "sf_delete",
|
"source": "sf_Exit",
|
||||||
"styles": [
|
"styles": [
|
||||||
{
|
{
|
||||||
"part": 0,
|
"part": 0,
|
||||||
|
@ -1759,7 +1759,7 @@
|
||||||
"X": 0,
|
"X": 0,
|
||||||
"Y": 0
|
"Y": 0
|
||||||
},
|
},
|
||||||
"source": "sf_Exit",
|
"source": "sf_delete",
|
||||||
"styles": [
|
"styles": [
|
||||||
{
|
{
|
||||||
"part": 0,
|
"part": 0,
|
||||||
|
@ -1967,200 +1967,260 @@
|
||||||
"widget": "Label"
|
"widget": "Label"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"animation state": "On",
|
"children": [
|
||||||
"animation time": 200,
|
{
|
||||||
"class": "lv_slider",
|
"auto size": true,
|
||||||
|
"class": "lv_img",
|
||||||
|
"click": false,
|
||||||
|
"drag": false,
|
||||||
|
"event callback": "",
|
||||||
|
"geometry": {
|
||||||
|
"height": 40,
|
||||||
|
"width": 40,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"hidden": false,
|
||||||
|
"locked": false,
|
||||||
|
"name": "image_play",
|
||||||
|
"offset": {
|
||||||
|
"X": 0,
|
||||||
|
"Y": 0
|
||||||
|
},
|
||||||
|
"source": "sf_play",
|
||||||
|
"styles": [
|
||||||
|
{
|
||||||
|
"Image": {
|
||||||
|
"image_recolor": "0x3c3c3c"
|
||||||
|
},
|
||||||
|
"part": 0,
|
||||||
|
"state": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"widget": "Image"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"animation state": "On",
|
||||||
|
"animation time": 200,
|
||||||
|
"class": "lv_slider",
|
||||||
|
"click": true,
|
||||||
|
"drag": false,
|
||||||
|
"event callback": "",
|
||||||
|
"geometry": {
|
||||||
|
"height": 4,
|
||||||
|
"width": 208,
|
||||||
|
"x": 40,
|
||||||
|
"y": 18
|
||||||
|
},
|
||||||
|
"hidden": false,
|
||||||
|
"locked": false,
|
||||||
|
"name": "slider_1",
|
||||||
|
"range": {
|
||||||
|
"max": 100,
|
||||||
|
"min": 0
|
||||||
|
},
|
||||||
|
"style": "Custome Style",
|
||||||
|
"styles": [
|
||||||
|
{
|
||||||
|
"Background": {
|
||||||
|
"bg_color": "0xffffff"
|
||||||
|
},
|
||||||
|
"Outline": {
|
||||||
|
"outline_color": "0x31eea5"
|
||||||
|
},
|
||||||
|
"part": 0,
|
||||||
|
"state": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 1,
|
||||||
|
"state": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 2,
|
||||||
|
"state": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "Normal",
|
||||||
|
"value": 0,
|
||||||
|
"widget": "Slider"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"align": "Center",
|
||||||
|
"class": "lv_label",
|
||||||
|
"click": false,
|
||||||
|
"drag": false,
|
||||||
|
"event callback": "",
|
||||||
|
"font type": "Font_Type0",
|
||||||
|
"geometry": {
|
||||||
|
"height": 20,
|
||||||
|
"width": 60,
|
||||||
|
"x": 258,
|
||||||
|
"y": 10
|
||||||
|
},
|
||||||
|
"hidden": false,
|
||||||
|
"locked": false,
|
||||||
|
"long mode": "Roll",
|
||||||
|
"name": "label_playtime",
|
||||||
|
"recolor": false,
|
||||||
|
"string id": "None",
|
||||||
|
"styles": [
|
||||||
|
{
|
||||||
|
"Text": {
|
||||||
|
"text_color": "0xffffff",
|
||||||
|
"text_font": "montserrat 16 4bpp",
|
||||||
|
"text_sel_bg_color": "0x00b495",
|
||||||
|
"text_sel_color": "0x3c3c3c"
|
||||||
|
},
|
||||||
|
"part": 0,
|
||||||
|
"state": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"part": 0,
|
||||||
|
"state": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"text": "00:00",
|
||||||
|
"widget": "Label"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"class": "lv_cont",
|
||||||
"click": true,
|
"click": true,
|
||||||
"drag": false,
|
"drag": false,
|
||||||
"event callback": "",
|
"event callback": "",
|
||||||
"geometry": {
|
"geometry": {
|
||||||
"height": 4,
|
"height": 40,
|
||||||
"width": 208,
|
"width": 320,
|
||||||
"x": 40,
|
"x": 0,
|
||||||
"y": 218
|
"y": 200
|
||||||
},
|
},
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
|
"layout": "Off",
|
||||||
"locked": false,
|
"locked": false,
|
||||||
"name": "slider_1",
|
"name": "container_play",
|
||||||
"range": {
|
|
||||||
"max": 100,
|
|
||||||
"min": 0
|
|
||||||
},
|
|
||||||
"style": "Custome Style",
|
|
||||||
"styles": [
|
"styles": [
|
||||||
{
|
{
|
||||||
"Background": {
|
"Background": {
|
||||||
"bg_color": "0xffffff"
|
"bg_color": "0x551f57"
|
||||||
},
|
},
|
||||||
"Outline": {
|
"Border": {
|
||||||
"outline_color": "0x31eea5"
|
"border_color": "0xdddddd",
|
||||||
},
|
"border_width": 0
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 1,
|
|
||||||
"state": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 2,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "Normal",
|
|
||||||
"value": 0,
|
|
||||||
"widget": "Slider"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"auto size": true,
|
|
||||||
"class": "lv_img",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"geometry": {
|
|
||||||
"height": 40,
|
|
||||||
"width": 40,
|
|
||||||
"x": 0,
|
|
||||||
"y": 199
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"name": "image_6",
|
|
||||||
"offset": {
|
|
||||||
"X": 0,
|
|
||||||
"Y": 0
|
|
||||||
},
|
|
||||||
"source": "sf_play",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"part": 0,
|
|
||||||
"state": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"widget": "Image"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"align": "Center",
|
|
||||||
"class": "lv_label",
|
|
||||||
"click": false,
|
|
||||||
"drag": false,
|
|
||||||
"event callback": "",
|
|
||||||
"font type": "Font_Type0",
|
|
||||||
"geometry": {
|
|
||||||
"height": 20,
|
|
||||||
"width": 60,
|
|
||||||
"x": 258,
|
|
||||||
"y": 211
|
|
||||||
},
|
|
||||||
"hidden": false,
|
|
||||||
"locked": false,
|
|
||||||
"long mode": "Roll",
|
|
||||||
"name": "label_3",
|
|
||||||
"recolor": false,
|
|
||||||
"string id": "None",
|
|
||||||
"styles": [
|
|
||||||
{
|
|
||||||
"Text": {
|
|
||||||
"text_color": "0xffffff",
|
|
||||||
"text_font": "montserrat 16 4bpp",
|
|
||||||
"text_sel_bg_color": "0x00b495",
|
|
||||||
"text_sel_color": "0x3c3c3c"
|
|
||||||
},
|
},
|
||||||
"part": 0,
|
"part": 0,
|
||||||
"state": 0
|
"state": 0
|
||||||
|
@ -2190,8 +2250,7 @@
|
||||||
"state": 6
|
"state": 6
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"text": "00:00",
|
"widget": "Container"
|
||||||
"widget": "Label"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,6 +216,14 @@ static void UIFlowMenuCommonConfirm_MessageBox_Key(lv_obj_t* obj, uint32_t key)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// case LV_USER_KEY_SHUTTER2:
|
||||||
|
// {
|
||||||
|
// if(gp){
|
||||||
|
// // printf("ssssssssssssssssssssssssssss send enter key.\n");
|
||||||
|
// lv_group_send_data(gp, LV_USER_KEY_SHUTTER2);
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -296,7 +304,6 @@ void UIFlowMenuCommonConfirmEventCallback(lv_obj_t* obj, lv_event_t event)
|
||||||
case LV_EVENT_KEY:
|
case LV_EVENT_KEY:
|
||||||
{
|
{
|
||||||
uint32_t* key = (uint32_t*)lv_event_get_data();
|
uint32_t* key = (uint32_t*)lv_event_get_data();
|
||||||
|
|
||||||
LV_UNUSED(key); /* avoid compile error, please remove it manually */
|
LV_UNUSED(key); /* avoid compile error, please remove it manually */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@ void show_qr_picture_page(lv_obj_t* obj)
|
||||||
if(obj){
|
if(obj){
|
||||||
|
|
||||||
/*Create a 100x100 QR code*/
|
/*Create a 100x100 QR code*/
|
||||||
qr = lv_qrcode_create(obj, 120, (lv_color_t) { .full = 0x02}, (lv_color_t) { .full = 0x0A});
|
qr = lv_qrcode_create(obj, 120, (lv_color_t) { .full = 0x02}, (lv_color_t) { .full = 0x01});
|
||||||
|
|
||||||
if(qr){
|
if(qr){
|
||||||
/*Set data*/
|
/*Set data*/
|
||||||
|
|
|
@ -1091,26 +1091,23 @@ lv_obj_t* UIFlowPhoto_create(){
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_2_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_2_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_2_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_2_s0, LV_STATE_CHECKED, color);
|
||||||
lv_style_set_text_font(&label_2_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
||||||
lv_style_set_text_font(&label_2_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_2_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_2_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_2_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_2_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_2_s0, LV_STATE_EDITED, color);
|
||||||
lv_style_set_text_font(&label_2_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_2_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_2_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_2_s0, LV_STATE_HOVERED, color);
|
||||||
|
@ -1223,7 +1220,7 @@ lv_obj_t* UIFlowPhoto_create(){
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_CHECKED, color);
|
||||||
|
@ -1250,12 +1247,14 @@ lv_obj_t* UIFlowPhoto_create(){
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_3_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_3_s0, LV_STATE_HOVERED, color);
|
||||||
|
lv_style_set_text_font(&label_3_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_3_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0xd3, 0x31, 0x40, 0x4f) ; lv_style_set_text_color(&label_3_s0, LV_STATE_PRESSED, color);
|
||||||
|
lv_style_set_text_font(&label_3_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3b, 0x3e, 0x42) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_DISABLED, color);
|
||||||
|
|
|
@ -39,9 +39,10 @@ lv_obj_t* image_delete_scr_uiflowplay;
|
||||||
lv_obj_t* label_num_scr_uiflowplay;
|
lv_obj_t* label_num_scr_uiflowplay;
|
||||||
lv_obj_t* label_1_scr_uiflowplay;
|
lv_obj_t* label_1_scr_uiflowplay;
|
||||||
lv_obj_t* label_2_scr_uiflowplay;
|
lv_obj_t* label_2_scr_uiflowplay;
|
||||||
|
lv_obj_t* container_play_scr_uiflowplay;
|
||||||
|
lv_obj_t* image_play_scr_uiflowplay;
|
||||||
lv_obj_t* slider_1_scr_uiflowplay;
|
lv_obj_t* slider_1_scr_uiflowplay;
|
||||||
lv_obj_t* image_6_scr_uiflowplay;
|
lv_obj_t* label_playtime_scr_uiflowplay;
|
||||||
lv_obj_t* label_3_scr_uiflowplay;
|
|
||||||
|
|
||||||
lv_obj_t* UIFlowPlay_create(){
|
lv_obj_t* UIFlowPlay_create(){
|
||||||
lv_obj_t *parent = lv_plugin_scr_create();
|
lv_obj_t *parent = lv_plugin_scr_create();
|
||||||
|
@ -1481,7 +1482,7 @@ lv_obj_t* UIFlowPlay_create(){
|
||||||
lv_obj_set_drag(image_exit, false);
|
lv_obj_set_drag(image_exit, false);
|
||||||
lv_obj_set_pos(image_exit, 135, 0);
|
lv_obj_set_pos(image_exit, 135, 0);
|
||||||
lv_obj_set_size(image_exit, 32, 40);
|
lv_obj_set_size(image_exit, 32, 40);
|
||||||
lv_img_set_src(image_exit, &sf_delete);
|
lv_img_set_src(image_exit, &sf_exit);
|
||||||
lv_obj_add_style(image_exit, 0, &image_exit_s0);
|
lv_obj_add_style(image_exit, 0, &image_exit_s0);
|
||||||
|
|
||||||
image_exit_scr_uiflowplay = image_exit;
|
image_exit_scr_uiflowplay = image_exit;
|
||||||
|
@ -1530,7 +1531,7 @@ lv_obj_t* UIFlowPlay_create(){
|
||||||
lv_obj_set_drag(image_delete, false);
|
lv_obj_set_drag(image_delete, false);
|
||||||
lv_obj_set_pos(image_delete, 214, 0);
|
lv_obj_set_pos(image_delete, 214, 0);
|
||||||
lv_obj_set_size(image_delete, 32, 40);
|
lv_obj_set_size(image_delete, 32, 40);
|
||||||
lv_img_set_src(image_delete, &sf_exit);
|
lv_img_set_src(image_delete, &sf_delete);
|
||||||
lv_obj_add_style(image_delete, 0, &image_delete_s0);
|
lv_obj_add_style(image_delete, 0, &image_delete_s0);
|
||||||
|
|
||||||
image_delete_scr_uiflowplay = image_delete;
|
image_delete_scr_uiflowplay = image_delete;
|
||||||
|
@ -1722,6 +1723,90 @@ lv_obj_t* UIFlowPlay_create(){
|
||||||
label_2_scr_uiflowplay = label_2;
|
label_2_scr_uiflowplay = label_2;
|
||||||
|
|
||||||
|
|
||||||
|
static lv_style_t container_play_s0;
|
||||||
|
lv_style_init(&container_play_s0);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
lv_style_set_border_width(&container_play_s0,LV_STATE_DEFAULT,0);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x00, 0x55, 0x1f, 0x57) ; lv_style_set_bg_color(&container_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
lv_obj_t *container_play = lv_cont_create(parent, NULL);
|
||||||
|
lv_obj_set_hidden(container_play, false);
|
||||||
|
lv_obj_set_click(container_play, true);
|
||||||
|
lv_obj_set_drag(container_play, false);
|
||||||
|
lv_obj_set_pos(container_play, 0, 200);
|
||||||
|
lv_obj_set_size(container_play, 320, 40);
|
||||||
|
lv_obj_add_style(container_play, 0, &container_play_s0);
|
||||||
|
|
||||||
|
container_play_scr_uiflowplay = container_play;
|
||||||
|
|
||||||
|
|
||||||
|
static lv_style_t image_play_s0;
|
||||||
|
lv_style_init(&image_play_s0);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_DEFAULT, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_CHECKED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_FOCUSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_EDITED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_HOVERED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_PRESSED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_image_recolor(&image_play_s0, LV_STATE_DISABLED, color);
|
||||||
|
lv_obj_t *image_play = lv_img_create(container_play, NULL);
|
||||||
|
lv_obj_set_hidden(image_play, false);
|
||||||
|
lv_obj_set_click(image_play, false);
|
||||||
|
lv_obj_set_drag(image_play, false);
|
||||||
|
lv_obj_set_pos(image_play, 0, 0);
|
||||||
|
lv_obj_set_size(image_play, 40, 40);
|
||||||
|
lv_img_set_src(image_play, &sf_play);
|
||||||
|
lv_obj_add_style(image_play, 0, &image_play_s0);
|
||||||
|
|
||||||
|
image_play_scr_uiflowplay = image_play;
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t slider_1_s0;
|
static lv_style_t slider_1_s0;
|
||||||
lv_style_init(&slider_1_s0);
|
lv_style_init(&slider_1_s0);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&slider_1_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&slider_1_s0, LV_STATE_DEFAULT, color);
|
||||||
|
@ -1791,11 +1876,11 @@ lv_obj_t* UIFlowPlay_create(){
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&slider_1_s2, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&slider_1_s2, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_bg_color(&slider_1_s2, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x3a, 0x01, 0xa2, 0xb1) ; lv_style_set_bg_color(&slider_1_s2, LV_STATE_DISABLED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&slider_1_s2, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&slider_1_s2, LV_STATE_DISABLED, color);
|
||||||
lv_obj_t *slider_1 = lv_slider_create(parent, NULL);
|
lv_obj_t *slider_1 = lv_slider_create(container_play, NULL);
|
||||||
lv_obj_set_hidden(slider_1, false);
|
lv_obj_set_hidden(slider_1, false);
|
||||||
lv_obj_set_click(slider_1, true);
|
lv_obj_set_click(slider_1, true);
|
||||||
lv_obj_set_drag(slider_1, false);
|
lv_obj_set_drag(slider_1, false);
|
||||||
lv_obj_set_pos(slider_1, 40, 218);
|
lv_obj_set_pos(slider_1, 40, 18);
|
||||||
lv_obj_set_size(slider_1, 208, 4);
|
lv_obj_set_size(slider_1, 208, 4);
|
||||||
lv_slider_set_range(slider_1, 0, 100);
|
lv_slider_set_range(slider_1, 0, 100);
|
||||||
lv_slider_set_anim_time(slider_1,200);
|
lv_slider_set_anim_time(slider_1,200);
|
||||||
|
@ -1807,115 +1892,66 @@ lv_obj_t* UIFlowPlay_create(){
|
||||||
slider_1_scr_uiflowplay = slider_1;
|
slider_1_scr_uiflowplay = slider_1;
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t image_6_s0;
|
static lv_style_t label_playtime_s0;
|
||||||
lv_style_init(&image_6_s0);
|
lv_style_init(&label_playtime_s0);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_DEFAULT, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_DEFAULT, color);
|
lv_style_set_text_font(&label_playtime_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_DEFAULT, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_CHECKED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_CHECKED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_FOCUSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_FOCUSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_EDITED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_HOVERED, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_EDITED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_PRESSED, color);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&image_6_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_HOVERED, color);
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&image_6_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&image_6_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_outline_color(&image_6_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_PRESSED, color);
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_image_recolor(&image_6_s0, LV_STATE_DISABLED, color);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_PRESSED, color);
|
||||||
lv_obj_t *image_6 = lv_img_create(parent, NULL);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_PRESSED, color);
|
||||||
lv_obj_set_hidden(image_6, false);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_PRESSED, color);
|
||||||
lv_obj_set_click(image_6, false);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_playtime_s0, LV_STATE_DISABLED, color);
|
||||||
lv_obj_set_drag(image_6, false);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_playtime_s0, LV_STATE_DISABLED, color);
|
||||||
lv_obj_set_pos(image_6, 0, 199);
|
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_playtime_s0, LV_STATE_DISABLED, color);
|
||||||
lv_obj_set_size(image_6, 40, 40);
|
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_playtime_s0, LV_STATE_DISABLED, color);
|
||||||
lv_img_set_src(image_6, &sf_play);
|
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_playtime_s0, LV_STATE_DISABLED, color);
|
||||||
lv_obj_add_style(image_6, 0, &image_6_s0);
|
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_playtime_s0, LV_STATE_DISABLED, color);
|
||||||
|
lv_obj_t *label_playtime = lv_label_create(container_play, NULL);
|
||||||
|
lv_obj_set_hidden(label_playtime, false);
|
||||||
|
lv_obj_set_click(label_playtime, false);
|
||||||
|
lv_obj_set_drag(label_playtime, false);
|
||||||
|
lv_plugin_label_allocate_ext_attr(label_playtime);
|
||||||
|
lv_label_set_text(label_playtime,"00:00");
|
||||||
|
lv_plugin_label_allocate_ext_attr(label_playtime);
|
||||||
|
lv_plugin_label_set_font_type(label_playtime, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
||||||
|
lv_label_set_align(label_playtime, LV_LABEL_ALIGN_CENTER);
|
||||||
|
lv_label_set_long_mode(label_playtime, LV_LABEL_LONG_SROLL);
|
||||||
|
lv_obj_set_pos(label_playtime, 258, 10);
|
||||||
|
lv_obj_set_size(label_playtime, 60, 20);
|
||||||
|
lv_obj_add_style(label_playtime, 0, &label_playtime_s0);
|
||||||
|
|
||||||
image_6_scr_uiflowplay = image_6;
|
label_playtime_scr_uiflowplay = label_playtime;
|
||||||
|
|
||||||
|
|
||||||
static lv_style_t label_3_s0;
|
|
||||||
lv_style_init(&label_3_s0);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
lv_style_set_text_font(&label_3_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_DEFAULT, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_CHECKED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_FOCUSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_EDITED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_HOVERED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_PRESSED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_color(&label_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&label_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x01, 0x00, 0x00, 0x00) ; lv_style_set_border_color(&label_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_text_color(&label_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0xd3, 0x3c, 0x3c, 0x3c) ; lv_style_set_text_sel_color(&label_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
STYLE_COLOR_PROP(0x3a, 0x00, 0xb4, 0x95) ; lv_style_set_text_sel_bg_color(&label_3_s0, LV_STATE_DISABLED, color);
|
|
||||||
lv_obj_t *label_3 = lv_label_create(parent, NULL);
|
|
||||||
lv_obj_set_hidden(label_3, false);
|
|
||||||
lv_obj_set_click(label_3, false);
|
|
||||||
lv_obj_set_drag(label_3, false);
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_3);
|
|
||||||
lv_label_set_text(label_3,"00:00");
|
|
||||||
lv_plugin_label_allocate_ext_attr(label_3);
|
|
||||||
lv_plugin_label_set_font_type(label_3, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
|
|
||||||
lv_label_set_align(label_3, LV_LABEL_ALIGN_CENTER);
|
|
||||||
lv_label_set_long_mode(label_3, LV_LABEL_LONG_SROLL);
|
|
||||||
lv_obj_set_pos(label_3, 258, 211);
|
|
||||||
lv_obj_set_size(label_3, 60, 20);
|
|
||||||
lv_obj_add_style(label_3, 0, &label_3_s0);
|
|
||||||
|
|
||||||
label_3_scr_uiflowplay = label_3;
|
|
||||||
|
|
||||||
|
|
||||||
return parent;
|
return parent;
|
||||||
|
|
|
@ -47,9 +47,10 @@ extern lv_obj_t* image_delete_scr_uiflowplay;
|
||||||
extern lv_obj_t* label_num_scr_uiflowplay;
|
extern lv_obj_t* label_num_scr_uiflowplay;
|
||||||
extern lv_obj_t* label_1_scr_uiflowplay;
|
extern lv_obj_t* label_1_scr_uiflowplay;
|
||||||
extern lv_obj_t* label_2_scr_uiflowplay;
|
extern lv_obj_t* label_2_scr_uiflowplay;
|
||||||
|
extern lv_obj_t* container_play_scr_uiflowplay;
|
||||||
|
extern lv_obj_t* image_play_scr_uiflowplay;
|
||||||
extern lv_obj_t* slider_1_scr_uiflowplay;
|
extern lv_obj_t* slider_1_scr_uiflowplay;
|
||||||
extern lv_obj_t* image_6_scr_uiflowplay;
|
extern lv_obj_t* label_playtime_scr_uiflowplay;
|
||||||
extern lv_obj_t* label_3_scr_uiflowplay;
|
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* GLOBAL PROTOTYPES
|
* GLOBAL PROTOTYPES
|
||||||
|
|
|
@ -115,7 +115,11 @@ static void UIFlowPlay_IconImageSize(BOOL bShow)
|
||||||
//show icon
|
//show icon
|
||||||
if (uiFileFmt & (PBFMT_MOVMJPG | PBFMT_AVI | PBFMT_MP4 | PBFMT_TS)) {
|
if (uiFileFmt & (PBFMT_MOVMJPG | PBFMT_AVI | PBFMT_MP4 | PBFMT_TS)) {
|
||||||
printf("This is video.\n");
|
printf("This is video.\n");
|
||||||
|
lv_obj_set_hidden(container_play_scr_uiflowplay, false);
|
||||||
|
lv_plugin_img_set_src(image_play_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_STOP);
|
||||||
PB_GetParam(PBPRMID_INFO_VDO, (UINT32 *)&MovieInfo);
|
PB_GetParam(PBPRMID_INFO_VDO, (UINT32 *)&MovieInfo);
|
||||||
|
lv_slider_set_range(slider_1_scr_uiflowplay, 0, MovieInfo.uiToltalSecs);
|
||||||
|
lv_slider_set_value(slider_1_scr_uiflowplay, 0, LV_ANIM_OFF);
|
||||||
switch (MovieInfo.uiVidWidth) {
|
switch (MovieInfo.uiVidWidth) {
|
||||||
case 3840:
|
case 3840:
|
||||||
if (MovieInfo.uiVidRate == 50) {
|
if (MovieInfo.uiVidRate == 50) {
|
||||||
|
@ -173,6 +177,7 @@ static void UIFlowPlay_IconImageSize(BOOL bShow)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("This is picture.\n");
|
printf("This is picture.\n");
|
||||||
|
lv_obj_set_hidden(container_play_scr_uiflowplay, true);
|
||||||
snprintf(item1_Buf, 32, "%lux%lu", OriImgWidth, OriImgHeight);
|
snprintf(item1_Buf, 32, "%lux%lu", OriImgWidth, OriImgHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -512,17 +517,18 @@ static void UIFlowPlay_UpdatePlaytime(BOOL bShow)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lv_obj_get_hidden(label_play_time_scr_uiflowplay))
|
// if(lv_obj_get_hidden(label_play_time_scr_uiflowplay))
|
||||||
lv_obj_set_hidden(label_play_time_scr_uiflowplay,false);
|
// lv_obj_set_hidden(label_play_time_scr_uiflowplay,false);
|
||||||
|
|
||||||
if (System_GetState(SYS_STATE_CARD) == CARD_REMOVED)
|
// if (System_GetState(SYS_STATE_CARD) == CARD_REMOVED)
|
||||||
{
|
// {
|
||||||
lv_obj_set_hidden(label_play_time_scr_uiflowplay,true);
|
// lv_obj_set_hidden(label_play_time_scr_uiflowplay,true);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
{
|
||||||
UINT32 rec_sec = FlowPB_GetMovPlayTime();
|
UINT32 rec_sec = FlowPB_GetMovPlayTime();
|
||||||
lv_label_set_text_fmt(label_play_time_scr_uiflowplay, "%02d:%02d:%02d", rec_sec / 3600, (rec_sec % 3600) / 60, (rec_sec % 3600) % 60);
|
lv_slider_set_value(slider_1_scr_uiflowplay, (rec_sec % 3600) % 60 + 1, LV_ANIM_OFF);
|
||||||
|
lv_label_set_text_fmt(label_playtime_scr_uiflowplay, "%02d:%02d", (rec_sec % 3600) / 60, (rec_sec % 3600) % 60);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void UIFlowPlay_UpdataBtnContainer(BOOL bShow)
|
static void UIFlowPlay_UpdataBtnContainer(BOOL bShow)
|
||||||
|
@ -786,6 +792,16 @@ static void FlowPB_IconDrawDSCMode(BOOL bShow)
|
||||||
lv_obj_set_hidden(image_mode_playback_scr_uiflowplay, false);
|
lv_obj_set_hidden(image_mode_playback_scr_uiflowplay, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void update_file_number(void)
|
||||||
|
{
|
||||||
|
UINT32 uiFileNum, uiFileSeq;
|
||||||
|
PB_GetParam(PBPRMID_TOTAL_FILE_COUNT, &uiFileNum);
|
||||||
|
PB_GetParam(PBPRMID_CURR_FILESEQ, &uiFileSeq);
|
||||||
|
#define BUF_LENGHT 128
|
||||||
|
char buf[BUF_LENGHT] = {0};
|
||||||
|
snprintf(buf, BUF_LENGHT, "<%d / %05d>", uiFileSeq, uiFileNum);
|
||||||
|
lv_label_set_text(label_num_scr_uiflowplay, buf);
|
||||||
|
}
|
||||||
|
|
||||||
static void update_playicons(UINT8 state)
|
static void update_playicons(UINT8 state)
|
||||||
{
|
{
|
||||||
|
@ -819,7 +835,7 @@ static void update_playicons(UINT8 state)
|
||||||
is_show = false;
|
is_show = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
update_file_number();
|
||||||
FlowPB_IconDrawDSCMode(is_show);
|
FlowPB_IconDrawDSCMode(is_show);
|
||||||
UIFlowPlay_IconFileAttri(is_show);
|
UIFlowPlay_IconFileAttri(is_show);
|
||||||
UIFlowPlay_UpdataBtnContainer(is_show);
|
UIFlowPlay_UpdataBtnContainer(is_show);
|
||||||
|
@ -1124,6 +1140,92 @@ void button_sel_event_callback(lv_obj_t* obj, lv_event_t event)
|
||||||
UIFlowPlayBtnEventCallback(obj, event);
|
UIFlowPlayBtnEventCallback(obj, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void play_video(lv_obj_t *obj)
|
||||||
|
{
|
||||||
|
char pFilePath[FULL_FILE_PATH_LEN] = {0};
|
||||||
|
UINT32 uiPBFileFmt = PBFMT_MP4;
|
||||||
|
UINT32 uiPBFileSize = 0;
|
||||||
|
PB_GetParam(PBPRMID_CURR_FILEFMT, &uiPBFileFmt);
|
||||||
|
if (uiPBFileFmt & (PBFMT_MOVMJPG | PBFMT_AVI | PBFMT_MP4 | PBFMT_TS))
|
||||||
|
{
|
||||||
|
if(PLB_ST_FULL == g_PlbData.State)
|
||||||
|
{
|
||||||
|
printf("now play the video.\n");
|
||||||
|
lv_plugin_img_set_src(image_play_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_PLAY);
|
||||||
|
UINT32 u32CurrPbStatus = 0;
|
||||||
|
|
||||||
|
PB_GetParam(PBPRMID_PLAYBACK_STATUS, &u32CurrPbStatus);
|
||||||
|
if (u32CurrPbStatus != PB_STA_DONE)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open Video File
|
||||||
|
if (gphUIFlowMovPlay_Filehdl)
|
||||||
|
{
|
||||||
|
FileSys_CloseFile(gphUIFlowMovPlay_Filehdl);
|
||||||
|
gphUIFlowMovPlay_Filehdl = NULL;
|
||||||
|
}
|
||||||
|
if (uiPBFileFmt & PBFMT_TS)
|
||||||
|
{
|
||||||
|
PB_GetParam(PBPRMID_CURR_FILESIZE, &uiPBFileSize);
|
||||||
|
if (uiPBFileSize <= 0x10000)
|
||||||
|
{
|
||||||
|
DBG_DUMP("Wrong video file format!! \r\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Get Current index
|
||||||
|
PB_GetParam(PBPRMID_CURR_FILEPATH, (UINT32 *)pFilePath);
|
||||||
|
|
||||||
|
// Open Test Media File
|
||||||
|
gphUIFlowMovPlay_Filehdl = FileSys_OpenFile(pFilePath, FST_OPEN_READ);
|
||||||
|
|
||||||
|
if (!gphUIFlowMovPlay_Filehdl)
|
||||||
|
{
|
||||||
|
DBG_DUMP("UIFlowWndPlay_OnKeySelect: Can't open Video file!\r\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
KeyScan_EnableMisc(FALSE);
|
||||||
|
update_playicons(PLB_ST_PLAY_MOV);
|
||||||
|
Ux_SendEvent(0, NVTEVT_EXE_CLOSE, 0); //CustomPlayObjCmdMap
|
||||||
|
Ux_SetActiveApp(&CustomMoviePlayObjCtrl);
|
||||||
|
Ux_SendEvent(0, NVTEVT_EXE_OPENPLAY, 1, (UINT32)gphUIFlowMovPlay_Filehdl);
|
||||||
|
Ux_SendEvent(0, NVTEVT_EXE_STARTPLAY, 0);
|
||||||
|
|
||||||
|
//set movie volumn
|
||||||
|
Ux_SendEvent(&CustomMoviePlayObjCtrl, NVTEVT_EXE_MOVIEAUDPLAYVOLUME, 2, UI_GetData(FL_MovieAudioPlayIndex), 1);
|
||||||
|
g_PlbData.State = PLB_ST_PLAY_MOV;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(PLB_ST_PLAY_MOV == g_PlbData.State)
|
||||||
|
{
|
||||||
|
printf("now sotp play the video.\n");
|
||||||
|
g_PlbData.State = PLB_ST_FULL;
|
||||||
|
lv_plugin_img_set_src(image_play_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_STOP);
|
||||||
|
g_PlbData.VideoPBSpeed = PLB_FWD_MOV_1x;
|
||||||
|
|
||||||
|
// Close MoviePlay module.
|
||||||
|
Ux_SendEvent(0, NVTEVT_EXE_CLOSEPLAY, 0);
|
||||||
|
Ux_SetActiveApp(&CustomPlayObjCtrl);
|
||||||
|
|
||||||
|
// Wakeup playback task and ImageApp_Play module.
|
||||||
|
Ux_SendEvent(0, NVTEVT_EXE_OPEN, 0);
|
||||||
|
KeyScan_EnableMisc(TRUE);
|
||||||
|
if (gphUIFlowMovPlay_Filehdl)
|
||||||
|
{
|
||||||
|
FileSys_CloseFile(gphUIFlowMovPlay_Filehdl);
|
||||||
|
gphUIFlowMovPlay_Filehdl = NULL;
|
||||||
|
}
|
||||||
|
PBView_DrawErrorView();
|
||||||
|
|
||||||
|
// Play 1st video frame image
|
||||||
|
UIPlay_PlaySingle(PB_SINGLE_CURR);
|
||||||
|
update_playicons(g_PlbData.State);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void UIFlowPlay_OnKeySelect(lv_obj_t* obj)
|
static void UIFlowPlay_OnKeySelect(lv_obj_t* obj)
|
||||||
{
|
{
|
||||||
|
@ -1724,6 +1826,8 @@ static void UIFlowPlay_CB_Finish(lv_obj_t* obj, const LV_USER_EVENT_NVTMSG_DATA*
|
||||||
case PLB_ST_BWD_MOV:
|
case PLB_ST_BWD_MOV:
|
||||||
|
|
||||||
g_PlbData.State = PLB_ST_FULL;
|
g_PlbData.State = PLB_ST_FULL;
|
||||||
|
lv_plugin_img_set_src(image_play_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_STOP);
|
||||||
|
lv_label_set_text_fmt(label_playtime_scr_uiflowplay, "%02d:%02d", 0, 0);
|
||||||
g_PlbData.VideoPBSpeed = PLB_FWD_MOV_1x;
|
g_PlbData.VideoPBSpeed = PLB_FWD_MOV_1x;
|
||||||
|
|
||||||
Ux_SendEvent(0, NVTEVT_EXE_CLOSEPLAY, 0);
|
Ux_SendEvent(0, NVTEVT_EXE_CLOSEPLAY, 0);
|
||||||
|
@ -1793,17 +1897,21 @@ static void UIFlowPlay_Key(lv_obj_t* obj, uint32_t key)
|
||||||
|
|
||||||
case LV_USER_KEY_SHUTTER2:
|
case LV_USER_KEY_SHUTTER2:
|
||||||
{
|
{
|
||||||
|
play_video(obj);
|
||||||
|
break;
|
||||||
UIFlowPlay_OnKeyShutter2(obj);
|
UIFlowPlay_OnKeyShutter2(obj);
|
||||||
// UIFlowPlay_OnKeySelect(obj);
|
// UIFlowPlay_OnKeySelect(obj);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LV_USER_KEY_LEFT:
|
case LV_USER_KEY_LEFT:
|
||||||
{
|
{
|
||||||
|
printf("lllllllllllllllllllllllllllllllllllll left.\n");
|
||||||
UIFlowPlay_OnKeyUp(obj);
|
UIFlowPlay_OnKeyUp(obj);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LV_USER_KEY_RIGHT:
|
case LV_USER_KEY_RIGHT:
|
||||||
{
|
{
|
||||||
|
printf("lllllllllllllllllllllllllllllllllllll right.\n");
|
||||||
UIFlowPlay_OnKeyDown(obj);
|
UIFlowPlay_OnKeyDown(obj);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1818,6 +1926,8 @@ static void UIFlowPlay_Key(lv_obj_t* obj, uint32_t key)
|
||||||
case LV_USER_KEY_DOWN:
|
case LV_USER_KEY_DOWN:
|
||||||
case LV_USER_KEY_NEXT:
|
case LV_USER_KEY_NEXT:
|
||||||
{
|
{
|
||||||
|
UIFlowMenuCommonConfirmAPI_Open(IDM_DELETE_THIS);
|
||||||
|
break;
|
||||||
UIFlowPlay_OnKeyNext(obj);
|
UIFlowPlay_OnKeyNext(obj);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user