feat(nyx): support per-tab backgrounds with shared fallback
This commit is contained in:
@@ -1397,7 +1397,7 @@ void create_tab_options(lv_theme_t *th, lv_obj_t *parent)
|
||||
|
||||
// Create Auto Boot button.
|
||||
lv_obj_t *btn = lv_btn_create(sw_h2, NULL);
|
||||
if (hekate_bg)
|
||||
if (nyx_tab_has_background(NYX_BG_TAB_OPTIONS))
|
||||
{
|
||||
lv_btn_set_style(btn, LV_BTN_STYLE_REL, &btn_transp_rel);
|
||||
lv_btn_set_style(btn, LV_BTN_STYLE_PR, &btn_transp_pr);
|
||||
@@ -1448,7 +1448,7 @@ void create_tab_options(lv_theme_t *th, lv_obj_t *parent)
|
||||
lv_ddlist_set_action(ddlist, _autoboot_delay_action);
|
||||
lv_ddlist_set_selected(ddlist, h_cfg.bootwait);
|
||||
|
||||
if (hekate_bg)
|
||||
if (nyx_tab_has_background(NYX_BG_TAB_OPTIONS))
|
||||
{
|
||||
lv_ddlist_set_style(ddlist, LV_DDLIST_STYLE_BG, &ddlist_transp_bg);
|
||||
lv_ddlist_set_style(ddlist, LV_DDLIST_STYLE_BGO, &ddlist_transp_bg);
|
||||
|
||||
Reference in New Issue
Block a user