mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-23 16:36:03 +00:00
nyx: Add tab separator for Tools tabs
This commit is contained in:
parent
72a51f9506
commit
ac4bf9cf2c
2 changed files with 12 additions and 4 deletions
|
@ -1325,7 +1325,7 @@ out_end:
|
||||||
return LV_RES_OK;
|
return LV_RES_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sept_run_dump()
|
void sept_run_dump(void *param)
|
||||||
{
|
{
|
||||||
_create_window_dump_pk12_tool(NULL);
|
_create_window_dump_pk12_tool(NULL);
|
||||||
}
|
}
|
||||||
|
@ -1369,7 +1369,8 @@ static void _create_tab_tools_emmc_pkg12(lv_theme_t *th, lv_obj_t *parent)
|
||||||
lv_label_set_static_text(label_txt2,
|
lv_label_set_static_text(label_txt2,
|
||||||
"Allows you to backup your eMMC partitions individually or as\n"
|
"Allows you to backup your eMMC partitions individually or as\n"
|
||||||
"a whole raw image to your SD card.\n"
|
"a whole raw image to your SD card.\n"
|
||||||
"#FF8000 Supports SD cards from 4GB and up. FAT32 and exFAT.#");
|
"#C7EA46 Supports SD cards from# #FF8000 4GB# #C7EA46 and up. #"
|
||||||
|
"#FF8000 FAT32# #C7EA46 and ##FF8000 exFAT##C7EA46 .#");
|
||||||
lv_obj_set_style(label_txt2, &hint_small_style);
|
lv_obj_set_style(label_txt2, &hint_small_style);
|
||||||
lv_obj_align(label_txt2, btn, LV_ALIGN_OUT_BOTTOM_LEFT, 0, LV_DPI / 3);
|
lv_obj_align(label_txt2, btn, LV_ALIGN_OUT_BOTTOM_LEFT, 0, LV_DPI / 3);
|
||||||
|
|
||||||
|
@ -1385,7 +1386,8 @@ static void _create_tab_tools_emmc_pkg12(lv_theme_t *th, lv_obj_t *parent)
|
||||||
lv_label_set_static_text(label_txt2,
|
lv_label_set_static_text(label_txt2,
|
||||||
"Allows you to restore your eMMC/emuMMC partitions individually\n"
|
"Allows you to restore your eMMC/emuMMC partitions individually\n"
|
||||||
"or as a whole raw image from your SD card.\n"
|
"or as a whole raw image from your SD card.\n"
|
||||||
"#FF8000 Supports SD cards from 4GB and up. FAT32 and exFAT. #");
|
"#C7EA46 Supports SD cards from# #FF8000 4GB# #C7EA46 and up. #"
|
||||||
|
"#FF8000 FAT32# #C7EA46 and ##FF8000 exFAT##C7EA46 .#");
|
||||||
lv_obj_set_style(label_txt2, &hint_small_style);
|
lv_obj_set_style(label_txt2, &hint_small_style);
|
||||||
lv_obj_align(label_txt2, btn2, LV_ALIGN_OUT_BOTTOM_LEFT, 0, LV_DPI / 3);
|
lv_obj_align(label_txt2, btn2, LV_ALIGN_OUT_BOTTOM_LEFT, 0, LV_DPI / 3);
|
||||||
|
|
||||||
|
@ -1597,6 +1599,12 @@ void create_tab_tools(lv_theme_t *th, lv_obj_t *parent)
|
||||||
lv_obj_t *tab1= lv_tabview_add_tab(tv, "eMMC "SYMBOL_DOT" Dump Pkg1/2 "SYMBOL_DOT" USB Tools");
|
lv_obj_t *tab1= lv_tabview_add_tab(tv, "eMMC "SYMBOL_DOT" Dump Pkg1/2 "SYMBOL_DOT" USB Tools");
|
||||||
lv_obj_t *tab2 = lv_tabview_add_tab(tv, "Archive bit "SYMBOL_DOT" AutoRCM "SYMBOL_DOT" Touch Tuning");
|
lv_obj_t *tab2 = lv_tabview_add_tab(tv, "Archive bit "SYMBOL_DOT" AutoRCM "SYMBOL_DOT" Touch Tuning");
|
||||||
|
|
||||||
|
lv_obj_t *line_sep = lv_line_create(tv, NULL);
|
||||||
|
static const lv_point_t line_pp[] = { {0, 0}, { 0, LV_DPI / 4} };
|
||||||
|
lv_line_set_points(line_sep, line_pp, 2);
|
||||||
|
lv_line_set_style(line_sep, lv_theme_get_current()->line.decor);
|
||||||
|
lv_obj_align(line_sep, tv, LV_ALIGN_IN_BOTTOM_MID, -1, -LV_DPI * 2 / 12);
|
||||||
|
|
||||||
_create_tab_tools_emmc_pkg12(th, tab1);
|
_create_tab_tools_emmc_pkg12(th, tab1);
|
||||||
_create_tab_tools_arc_autorcm(th, tab2);
|
_create_tab_tools_arc_autorcm(th, tab2);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
lv_obj_t *ums_mbox;
|
lv_obj_t *ums_mbox;
|
||||||
|
|
||||||
void create_tab_tools(lv_theme_t *th, lv_obj_t *parent);
|
void create_tab_tools(lv_theme_t *th, lv_obj_t *parent);
|
||||||
void sept_run_dump();
|
void sept_run_dump(void *param);
|
||||||
bool get_autorcm_status(bool change);
|
bool get_autorcm_status(bool change);
|
||||||
lv_res_t action_ums_sd(lv_obj_t *btn);
|
lv_res_t action_ums_sd(lv_obj_t *btn);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue