File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1251
1251
"type": "LVGLLabelWidget",
1252
1252
"left": 0,
1253
1253
"top": 0,
1254
- "width": 194 ,
1254
+ "width": 98 ,
1255
1255
"height": 17,
1256
1256
"customInputs": [],
1257
1257
"customOutputs": [],
1266
1266
"identifier": "HomeInfoIPv6Addr",
1267
1267
"leftUnit": "%",
1268
1268
"topUnit": "%",
1269
- "widthUnit": "content ",
1270
- "heightUnit": "content ",
1269
+ "widthUnit": "% ",
1270
+ "heightUnit": "px ",
1271
1271
"children": [],
1272
1272
"widgetFlags": "CLICK_FOCUSABLE|GESTURE_BUBBLE|PRESS_LOCK|SCROLLABLE|SCROLL_CHAIN_HOR|SCROLL_CHAIN_VER|SCROLL_ELASTIC|SCROLL_MOMENTUM|SCROLL_WITH_ARROW|SNAPPABLE",
1273
1273
"hiddenFlagType": "literal",
1277
1277
"states": "",
1278
1278
"useStyle": "LabelFont16",
1279
1279
"localStyles": {
1280
- "objID": "64467adf-a093-484d-b5cf-b70c5be5264f"
1280
+ "objID": "64467adf-a093-484d-b5cf-b70c5be5264f",
1281
+ "definition": {
1282
+ "MAIN": {
1283
+ "DEFAULT": {
1284
+ "text_align": "LEFT"
1285
+ }
1286
+ }
1287
+ }
1281
1288
},
1282
1289
"groupIndex": 0,
1283
- "text": "fe80::ffff:ffff:ffff:ffff:ffff:ffff",
1290
+ "text": "fe80::ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ",
1284
1291
"textType": "literal",
1285
1292
"longMode": "DOT",
1286
1293
"recolor": false
Original file line number Diff line number Diff line change @@ -325,10 +325,11 @@ void create_screen_home_screen() {
325
325
lv_obj_t * obj = lv_label_create (parent_obj );
326
326
objects .home_info_ipv6_addr = obj ;
327
327
lv_obj_set_pos (obj , LV_PCT (0 ), LV_PCT (0 ));
328
- lv_obj_set_size (obj , LV_SIZE_CONTENT , LV_SIZE_CONTENT );
328
+ lv_obj_set_size (obj , LV_PCT ( 98 ), 17 );
329
329
lv_label_set_long_mode (obj , LV_LABEL_LONG_DOT );
330
330
add_style_label_font16 (obj );
331
- lv_label_set_text (obj , "fe80::ffff:ffff:ffff:ffff:ffff:ffff" );
331
+ lv_obj_set_style_text_align (obj , LV_TEXT_ALIGN_LEFT , LV_PART_MAIN | LV_STATE_DEFAULT );
332
+ lv_label_set_text (obj , "fe80::ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" );
332
333
}
333
334
{
334
335
// HomeInfoMACAddr
You can’t perform that action at this time.
0 commit comments