存档:
1、选项卡切换和内容选择逻辑已完成,选项卡选中时改变背景颜色,内容选中时改变字体颜色; 2、标签背景透明度lv_obj_set_style_bg_opa为0时,无法直接修改背景颜色;
This commit is contained in:
parent
b48cf51e16
commit
c816830470
|
@ -28,5 +28,6 @@
|
|||
"timer.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"
|
||||
}
|
|
@ -233,7 +233,7 @@ typedef struct
|
|||
typedef struct
|
||||
{
|
||||
uint8_t tab_cursor; //选项卡游标,后续根据实际需求进行宏定义
|
||||
uint8_t tab_cursor_prv; //前一时刻的选项卡游标
|
||||
uint8_t tab_cursor_prv; //前一时刻的选项卡游标
|
||||
uint8_t tab_cursor_inner; //选项内部的游标, 99代表未选中。
|
||||
uint8_t tab_cursor_inner_prv; //前一时刻的内部游标
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: wujunchao wujunchao@wuxismart.com
|
||||
* @Date: 2024-12-27 11:50:56
|
||||
* @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
|
||||
* @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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
@ -1240,7 +1240,7 @@ void key_functions_setting(void) //按键功能,详细设置菜单界面
|
|||
if(tabdata.tab_cursor_inner == 99)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
@ -1391,19 +1391,19 @@ void setting_items_check(uint8_t cursor, uint8_t cursor_prv, uint8_t tab_cont)
|
|||
{
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
|
@ -1415,19 +1415,19 @@ void setting_items_check(uint8_t cursor, uint8_t cursor_prv, uint8_t tab_cont)
|
|||
{
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
|
@ -1450,7 +1450,67 @@ void setting_items_check(uint8_t cursor, uint8_t cursor_prv, uint8_t tab_cont)
|
|||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
17093
MDK-ARM/JLinkLog.txt
17093
MDK-ARM/JLinkLog.txt
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.
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.
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.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue