/*
 * 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"

void ui_screen_music_player_screen_init(void)
{
    ui_screen_music_player = lv_obj_create(NULL);
    lv_obj_remove_flag(ui_screen_music_player, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_bg_color(ui_screen_music_player, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_screen_music_player, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_src(ui_screen_music_player, &ui_img_pattern_png, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_tiled(ui_screen_music_player, true, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_music_player_small_label_music_title = ui_label_small_label_create(ui_screen_music_player);
    lv_obj_set_x(ui_music_player_small_label_music_title, 0);
    lv_obj_set_y(ui_music_player_small_label_music_title, 0);
    lv_obj_set_align(ui_music_player_small_label_music_title, LV_ALIGN_CENTER);
    lv_label_set_text(ui_music_player_small_label_music_title, "Wood and forest");
    lv_obj_set_style_text_color(ui_music_player_small_label_music_title, lv_color_hex(0x000746),
                                LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_music_player_small_label_music_title, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_music_player_small_label_author = ui_label_small_label_create(ui_screen_music_player);
    lv_obj_set_x(ui_music_player_small_label_author, 0);
    lv_obj_set_y(ui_music_player_small_label_author, 25);
    lv_obj_set_align(ui_music_player_small_label_author, LV_ALIGN_CENTER);
    lv_label_set_text(ui_music_player_small_label_author, "Alan Smith");
    lv_obj_set_style_text_color(ui_music_player_small_label_author, lv_color_hex(0x9C9CD9),
                                LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_music_player_small_label_author, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_music_player_panel_play_btn = lv_obj_create(ui_screen_music_player);
    lv_obj_set_width(ui_music_player_panel_play_btn, 60);
    lv_obj_set_height(ui_music_player_panel_play_btn, 60);
    lv_obj_set_x(ui_music_player_panel_play_btn, 0);
    lv_obj_set_y(ui_music_player_panel_play_btn, -42);
    lv_obj_set_align(ui_music_player_panel_play_btn, LV_ALIGN_BOTTOM_MID);
    lv_obj_remove_flag(ui_music_player_panel_play_btn, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(ui_music_player_panel_play_btn, 60, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_music_player_panel_play_btn, lv_color_hex(0x293062), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_music_player_panel_play_btn, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui_music_player_panel_play_btn, lv_color_hex(0x293062), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui_music_player_panel_play_btn, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui_music_player_panel_play_btn, 30, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui_music_player_panel_play_btn, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_offset_x(ui_music_player_panel_play_btn, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_offset_y(ui_music_player_panel_play_btn, 6, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_music_player_panel_play_btn, lv_color_hex(0x515EB5), LV_PART_MAIN | LV_STATE_PRESSED);
    lv_obj_set_style_bg_opa(ui_music_player_panel_play_btn, 255, LV_PART_MAIN | LV_STATE_PRESSED);

    ui_music_player_image_play = lv_image_create(ui_music_player_panel_play_btn);
    lv_image_set_src(ui_music_player_image_play, &ui_img_play_png);
    lv_obj_set_width(ui_music_player_image_play, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_music_player_image_play, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_music_player_image_play, 2);
    lv_obj_set_y(ui_music_player_image_play, 0);
    lv_obj_set_align(ui_music_player_image_play, LV_ALIGN_CENTER);
    lv_obj_add_flag(ui_music_player_image_play, LV_OBJ_FLAG_ADV_HITTEST);     /// Flags
    lv_obj_remove_flag(ui_music_player_image_play, LV_OBJ_FLAG_SCROLLABLE);      /// Flags

    ui_music_player_image_album = lv_image_create(ui_screen_music_player);
    lv_image_set_src(ui_music_player_image_album, &ui_img_album_png);
    lv_obj_set_width(ui_music_player_image_album, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_music_player_image_album, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_music_player_image_album, 0);
    lv_obj_set_y(ui_music_player_image_album, 20);
    lv_obj_set_align(ui_music_player_image_album, LV_ALIGN_TOP_MID);
    lv_obj_add_flag(ui_music_player_image_album, LV_OBJ_FLAG_ADV_HITTEST);     /// Flags
    lv_obj_remove_flag(ui_music_player_image_album, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_radius(ui_music_player_image_album, 300, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_color(ui_music_player_image_album, lv_color_hex(0xD5D2D5), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_opa(ui_music_player_image_album, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui_music_player_image_album, 30, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_spread(ui_music_player_image_album, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_offset_x(ui_music_player_image_album, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_offset_y(ui_music_player_image_album, 6, LV_PART_MAIN | LV_STATE_DEFAULT);

    ui_music_player_image_backward = lv_image_create(ui_screen_music_player);
    lv_image_set_src(ui_music_player_image_backward, &ui_img_backward_png);
    lv_obj_set_width(ui_music_player_image_backward, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_music_player_image_backward, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_music_player_image_backward, 30);
    lv_obj_set_y(ui_music_player_image_backward, -60);
    lv_obj_set_align(ui_music_player_image_backward, LV_ALIGN_BOTTOM_LEFT);
    lv_obj_add_flag(ui_music_player_image_backward, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_ADV_HITTEST);     /// Flags
    lv_obj_remove_flag(ui_music_player_image_backward, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_image_recolor(ui_music_player_image_backward, lv_color_hex(0x293062), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_image_recolor_opa(ui_music_player_image_backward, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_image_recolor(ui_music_player_image_backward, lv_color_hex(0x515EB5), LV_PART_MAIN | LV_STATE_PRESSED);
    lv_obj_set_style_image_recolor_opa(ui_music_player_image_backward, 255, LV_PART_MAIN | LV_STATE_PRESSED);

    ui_music_player_image_forward = lv_image_create(ui_screen_music_player);
    lv_image_set_src(ui_music_player_image_forward, &ui_img_forward_png);
    lv_obj_set_width(ui_music_player_image_forward, LV_SIZE_CONTENT);   /// 1
    lv_obj_set_height(ui_music_player_image_forward, LV_SIZE_CONTENT);    /// 1
    lv_obj_set_x(ui_music_player_image_forward, -30);
    lv_obj_set_y(ui_music_player_image_forward, -60);
    lv_obj_set_align(ui_music_player_image_forward, LV_ALIGN_BOTTOM_RIGHT);
    lv_obj_add_flag(ui_music_player_image_forward, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_ADV_HITTEST);     /// Flags
    lv_obj_remove_flag(ui_music_player_image_forward, LV_OBJ_FLAG_SCROLLABLE);      /// Flags
    lv_obj_set_style_image_recolor(ui_music_player_image_forward, lv_color_hex(0x293062), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_image_recolor_opa(ui_music_player_image_forward, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_image_recolor(ui_music_player_image_forward, lv_color_hex(0x515EB5), LV_PART_MAIN | LV_STATE_PRESSED);
    lv_obj_set_style_image_recolor_opa(ui_music_player_image_forward, 255, LV_PART_MAIN | LV_STATE_PRESSED);

    ui_music_player_scrolldots_scrolldots3 = ui_panel_scrolldots_create(ui_screen_music_player);
    lv_obj_set_x(ui_music_player_scrolldots_scrolldots3, 0);
    lv_obj_set_y(ui_music_player_scrolldots_scrolldots3, -8);

    lv_obj_set_width(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D1), 4);
    lv_obj_set_height(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D1), 4);

    lv_obj_set_x(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D2), 10);
    lv_obj_set_y(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D2), 0);

    lv_obj_set_x(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D3), 20);
    lv_obj_set_y(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D3), 0);

    lv_obj_set_width(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D4), 8);
    lv_obj_set_height(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D4), 8);
    lv_obj_set_x(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D4), 31);
    lv_obj_set_y(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D4), 0);
    lv_obj_set_style_bg_color(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D4),
                              lv_color_hex(0x101C52), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_comp_get_child(ui_music_player_scrolldots_scrolldots3, UI_COMP_PANEL_SCROLLDOTS_PANEL_D4),
                            255, LV_PART_MAIN | LV_STATE_DEFAULT);




    lv_obj_add_event_cb(ui_screen_music_player, ui_event_screen_music_player, LV_EVENT_ALL, NULL);

}
