修改了squareline后的提交【slider light】
This commit is contained in:
parent
fef182000c
commit
0095bbf59d
File diff suppressed because one or more lines are too long
@ -12753,7 +12753,7 @@
|
||||
{
|
||||
"nid": 1040,
|
||||
"strtype": "SLIDER/Value",
|
||||
"integer": 7192,
|
||||
"integer": 900,
|
||||
"InheritedType": 6
|
||||
},
|
||||
{
|
||||
@ -12892,8 +12892,8 @@
|
||||
"flags": 17,
|
||||
"strtype": "OBJECT/Position",
|
||||
"intarray": [
|
||||
0,
|
||||
0
|
||||
-99,
|
||||
2
|
||||
],
|
||||
"InheritedType": 7
|
||||
},
|
||||
|
||||
@ -118,6 +118,8 @@ void ui_pageSetting_screen_init(void)
|
||||
ui_pageSetting_panelLight = lv_obj_create(ui_pageSetting_panelBody);
|
||||
lv_obj_set_width(ui_pageSetting_panelLight, 320);
|
||||
lv_obj_set_height(ui_pageSetting_panelLight, 40);
|
||||
lv_obj_set_x(ui_pageSetting_panelLight, -99);
|
||||
lv_obj_set_y(ui_pageSetting_panelLight, 2);
|
||||
lv_obj_set_align(ui_pageSetting_panelLight, LV_ALIGN_CENTER);
|
||||
lv_obj_clear_flag(ui_pageSetting_panelLight,
|
||||
LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE | LV_OBJ_FLAG_SCROLLABLE | LV_OBJ_FLAG_SCROLL_ELASTIC |
|
||||
@ -139,7 +141,7 @@ void ui_pageSetting_screen_init(void)
|
||||
|
||||
ui_pageSetting_sliderLight = lv_slider_create(ui_pageSetting_panelLight);
|
||||
lv_slider_set_range(ui_pageSetting_sliderLight, 0, 8192);
|
||||
lv_slider_set_value(ui_pageSetting_sliderLight, 7192, LV_ANIM_OFF);
|
||||
lv_slider_set_value(ui_pageSetting_sliderLight, 900, LV_ANIM_OFF);
|
||||
if(lv_slider_get_mode(ui_pageSetting_sliderLight) == LV_SLIDER_MODE_RANGE) lv_slider_set_left_value(
|
||||
ui_pageSetting_sliderLight, 0, LV_ANIM_OFF);
|
||||
lv_obj_set_width(ui_pageSetting_sliderLight, 211);
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user