/*
 * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
 *
 * SPDX-License-Identifier: Apache-2.0
 */
// This file was generated by SquareLine Studio
// SquareLine Studio version: SquareLine Studio 1.5.0
// LVGL version: 9.1.0
// Project name: Smart_Gadget

#include "../ui.h"


// COMPONENT Scrolldots

lv_obj_t *ui_panel_scrolldots_create(lv_obj_t *comp_parent)
{

    lv_obj_t *cui_panel_scrolldots;
    cui_panel_scrolldots = lv_obj_create(comp_parent);
    lv_obj_set_width(cui_panel_scrolldots, 65);
    lv_obj_set_height(cui_panel_scrolldots, 12);
    lv_obj_set_x(cui_panel_scrolldots, 0);
    lv_obj_set_y(cui_panel_scrolldots, -8);
    lv_obj_set_align(cui_panel_scrolldots, LV_ALIGN_BOTTOM_MID);
    lv_obj_remove_flag(cui_panel_scrolldots, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_bg_color(cui_panel_scrolldots, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_scrolldots, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t *cui_panel_d1;
    cui_panel_d1 = lv_obj_create(cui_panel_scrolldots);
    lv_obj_set_width(cui_panel_d1, 8);
    lv_obj_set_height(cui_panel_d1, 8);
    lv_obj_set_align(cui_panel_d1, LV_ALIGN_LEFT_MID);
    lv_obj_remove_flag(cui_panel_d1, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(cui_panel_d1, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(cui_panel_d1, lv_color_hex(0xB4B6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_d1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t *cui_panel_d2;
    cui_panel_d2 = lv_obj_create(cui_panel_scrolldots);
    lv_obj_set_width(cui_panel_d2, 4);
    lv_obj_set_height(cui_panel_d2, 4);
    lv_obj_set_x(cui_panel_d2, 15);
    lv_obj_set_y(cui_panel_d2, 0);
    lv_obj_set_align(cui_panel_d2, LV_ALIGN_LEFT_MID);
    lv_obj_remove_flag(cui_panel_d2, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(cui_panel_d2, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(cui_panel_d2, lv_color_hex(0xB4B6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_d2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t *cui_panel_d3;
    cui_panel_d3 = lv_obj_create(cui_panel_scrolldots);
    lv_obj_set_width(cui_panel_d3, 4);
    lv_obj_set_height(cui_panel_d3, 4);
    lv_obj_set_x(cui_panel_d3, 25);
    lv_obj_set_y(cui_panel_d3, 0);
    lv_obj_set_align(cui_panel_d3, LV_ALIGN_LEFT_MID);
    lv_obj_remove_flag(cui_panel_d3, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(cui_panel_d3, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(cui_panel_d3, lv_color_hex(0xB4B6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_d3, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t *cui_panel_d4;
    cui_panel_d4 = lv_obj_create(cui_panel_scrolldots);
    lv_obj_set_width(cui_panel_d4, 4);
    lv_obj_set_height(cui_panel_d4, 4);
    lv_obj_set_x(cui_panel_d4, 35);
    lv_obj_set_y(cui_panel_d4, 0);
    lv_obj_set_align(cui_panel_d4, LV_ALIGN_LEFT_MID);
    lv_obj_remove_flag(cui_panel_d4, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(cui_panel_d4, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(cui_panel_d4, lv_color_hex(0xB4B6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_d4, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t *cui_panel_d5;
    cui_panel_d5 = lv_obj_create(cui_panel_scrolldots);
    lv_obj_set_width(cui_panel_d5, 4);
    lv_obj_set_height(cui_panel_d5, 4);
    lv_obj_set_x(cui_panel_d5, 45);
    lv_obj_set_y(cui_panel_d5, 0);
    lv_obj_set_align(cui_panel_d5, LV_ALIGN_LEFT_MID);
    lv_obj_remove_flag(cui_panel_d5, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(cui_panel_d5, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(cui_panel_d5, lv_color_hex(0xB4B6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_d5, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t *cui_panel_d6;
    cui_panel_d6 = lv_obj_create(cui_panel_scrolldots);
    lv_obj_set_width(cui_panel_d6, 4);
    lv_obj_set_height(cui_panel_d6, 4);
    lv_obj_set_x(cui_panel_d6, 55);
    lv_obj_set_y(cui_panel_d6, 0);
    lv_obj_set_align(cui_panel_d6, LV_ALIGN_LEFT_MID);
    lv_obj_remove_flag(cui_panel_d6, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(cui_panel_d6, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(cui_panel_d6, lv_color_hex(0xB4B6E6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(cui_panel_d6, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_t **children = lv_malloc(sizeof(lv_obj_t *) * _UI_COMP_PANEL_SCROLLDOTS_NUM);
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_SCROLLDOTS] = cui_panel_scrolldots;
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_D1] = cui_panel_d1;
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_D2] = cui_panel_d2;
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_D3] = cui_panel_d3;
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_D4] = cui_panel_d4;
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_D5] = cui_panel_d5;
    children[UI_COMP_PANEL_SCROLLDOTS_PANEL_D6] = cui_panel_d6;
    lv_obj_add_event_cb(cui_panel_scrolldots, get_component_child_event_cb, LV_EVENT_GET_COMP_CHILD, children);
    lv_obj_add_event_cb(cui_panel_scrolldots, del_component_child_event_cb, LV_EVENT_DELETE, children);
    ui_comp_panel_scrolldots_create_hook(cui_panel_scrolldots);
    return cui_panel_scrolldots;
}
