存档:

1、选项卡切换和内容选择逻辑已完成,选项卡选中时改变背景颜色,内容选中时改变字体颜色;
2、标签背景透明度lv_obj_set_style_bg_opa为0时,无法直接修改背景颜色;
This commit is contained in:
吴俊潮 2025-03-03 14:16:47 +08:00
parent b48cf51e16
commit c816830470
317 changed files with 35180 additions and 29464 deletions

View File

@ -28,5 +28,6 @@
"timer.h": "c", "timer.h": "c",
"lv_span.h": "c" "lv_span.h": "c"
}, },
"C_Cpp.errorSquiggles": "disabled" "C_Cpp.errorSquiggles": "disabled",
"idf.pythonInstallPath": "F:\\Espressif\\tools\\idf-python\\3.11.2\\python.exe"
} }

View File

@ -2,7 +2,7 @@
* @Author: wujunchao wujunchao@wuxismart.com * @Author: wujunchao wujunchao@wuxismart.com
* @Date: 2024-12-27 11:50:56 * @Date: 2024-12-27 11:50:56
* @LastEditors: wujunchao wujunchao@wuxismart.com * @LastEditors: wujunchao wujunchao@wuxismart.com
* @LastEditTime: 2025-02-25 10:41:55 * @LastEditTime: 2025-03-03 14:08:51
* @FilePath: \signal_generator\App\APP_WU\Src\apps_gather.c * @FilePath: \signal_generator\App\APP_WU\Src\apps_gather.c
* @Description: ,`customMade`, koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: ,`customMade`, koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@ -1203,7 +1203,7 @@ void key_functions_setting(void) //按键功能,详细设置菜单界面
if(tabdata.tab_cursor_inner == 99) if(tabdata.tab_cursor_inner == 99)
{ {
tabdata.tab_cursor_prv = tabdata.tab_cursor; tabdata.tab_cursor_prv = tabdata.tab_cursor;
tabdata.tab_cursor = (tabdata.tab_cursor <= 0)?(2):(tabdata.tab_cursor - 1); tabdata.tab_cursor = (tabdata.tab_cursor <= 0)?(3):(tabdata.tab_cursor - 1);
setting_items_check(tabdata.tab_cursor, tabdata.tab_cursor_prv, 0); setting_items_check(tabdata.tab_cursor, tabdata.tab_cursor_prv, 0);
} }
@ -1240,7 +1240,7 @@ void key_functions_setting(void) //按键功能,详细设置菜单界面
if(tabdata.tab_cursor_inner == 99) if(tabdata.tab_cursor_inner == 99)
{ {
tabdata.tab_cursor_prv = tabdata.tab_cursor; tabdata.tab_cursor_prv = tabdata.tab_cursor;
tabdata.tab_cursor = (tabdata.tab_cursor >= 2)?(0):(tabdata.tab_cursor + 1); tabdata.tab_cursor = (tabdata.tab_cursor >= 3)?(0):(tabdata.tab_cursor + 1);
setting_items_check(tabdata.tab_cursor, tabdata.tab_cursor_prv, 0); setting_items_check(tabdata.tab_cursor, tabdata.tab_cursor_prv, 0);
} }
@ -1391,19 +1391,19 @@ void setting_items_check(uint8_t cursor, uint8_t cursor_prv, uint8_t tab_cont)
{ {
case 0: case 0:
{ {
lv_obj_set_style_text_color(guider_ui.screen_setting_label_01, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
} }
break; break;
case 1: case 1:
{ {
lv_obj_set_style_text_color(guider_ui.screen_setting_label_03, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
} }
break; break;
case 2: case 2:
{ {
lv_obj_set_style_text_color(guider_ui.screen_setting_label_05, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
} }
break; break;
@ -1415,19 +1415,19 @@ void setting_items_check(uint8_t cursor, uint8_t cursor_prv, uint8_t tab_cont)
{ {
case 0: case 0:
{ {
lv_obj_set_style_text_color(guider_ui.screen_setting_label_01, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
} }
break; break;
case 1: case 1:
{ {
lv_obj_set_style_text_color(guider_ui.screen_setting_label_03, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
} }
break; break;
case 2: case 2:
{ {
lv_obj_set_style_text_color(guider_ui.screen_setting_label_05, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
} }
break; break;
@ -1450,7 +1450,67 @@ void setting_items_check(uint8_t cursor, uint8_t cursor_prv, uint8_t tab_cont)
} }
} }
else //标签点亮和熄灭 else //标签点亮和熄灭
{} {
switch (cursor) //点亮当前选中目标
{
case 0:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s0, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 1:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s1, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 2:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s2, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 3:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s3, lv_color_hex(0xcbefff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
switch (cursor_prv) //熄灭前一时刻的目标
{
case 0:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s0, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 1:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 2:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
case 3:
{
lv_obj_set_style_bg_color(guider_ui.screen_setting_label_s3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
}
break;
default:
break;
}
}
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More