/**
* @file fcv4905_ui_custom.c
* @brief Auto-generated LVGL (v8.3.11) Screen Config for FCV4905
* @note Target OS: DejaOS IoT Platform
* @scenario enterprise
*/
#include "lvgl/lvgl.h"
#include "dejaos_hal.h"
static lv_obj_t * scr_main;
static lv_style_t style_bg;
static lv_style_t style_title;
static lv_style_t style_subtitle;
void fcv4905_custom_ui_init(void) {
scr_main = lv_obj_create(NULL);
lv_style_init(&style_bg);
lv_style_set_bg_color(&style_bg, lv_color_hex(0x090d16));
lv_style_set_bg_grad_color(&style_bg, lv_color_hex(0x1a2436));
lv_style_set_bg_grad_dir(&style_bg, LV_GRAD_DIR_VER);
lv_obj_add_style(scr_main, &style_bg, 0);
lv_scr_load(scr_main);
lv_obj_t * brand_label = lv_label_create(scr_main);
lv_label_set_text(brand_label, "CoolCode Corp HQ");
lv_obj_set_style_text_color(brand_label, lv_color_hex(0xffffff), 0);
lv_obj_align(brand_label, LV_ALIGN_TOP_LEFT, 15, 15);
lv_obj_t * title_lbl = lv_label_create(scr_main);
lv_label_set_text(title_lbl, "Face Recognition Active");
lv_obj_set_style_text_color(title_lbl, lv_color_hex(0xffffff), 0);
lv_obj_align(title_lbl, LV_ALIGN_CENTER, 0, 0);
lv_obj_t * sub_lbl = lv_label_create(scr_main);
lv_label_set_text(sub_lbl, "Internal Office Access");
lv_obj_set_style_text_color(sub_lbl, lv_color_hex(0x00f2fe), 0);
lv_obj_align(sub_lbl, LV_ALIGN_CENTER, 0, 25);
dejaos_hal_led_set_color(HAL_LED_CH_HALO, 0x00f2fe);
dejaos_hal_led_set_mode(HAL_LED_CH_HALO, LED_MODE_BREATH, 4000);
}
/* Deployment Parameters */
{
"device_model": "FCV4905",
"firmware_ver": "DejaOS-v3.4.1",
"scenario_id": "enterprise",
"ui_properties": {
"brand_header": "CoolCode Corp HQ",
"main_title": "Face Recognition Active",
"sub_title": "Internal Office Access",
"accent_color_hex": "#00f2fe",
"background_gradient": {
"start": "#090d16",
"end": "#1a2436",
"type": "vertical"
}
}
}