11// This file was generated by SquareLine Studio
2- // SquareLine Studio version: SquareLine Studio 1.3.3
3- // LVGL version: 8.2.0
2+ // SquareLine Studio version: SquareLine Studio 1.4.0
3+ // LVGL version: 8.3.6
44// Project name: smart_watch_ui
55
66#include "../ui.h"
@@ -41,19 +41,6 @@ lv_obj_set_style_shadow_spread(ui_BrightnessSlider, 1, LV_PART_KNOB| LV_STATE_DE
4141lv_obj_set_style_shadow_ofs_x (ui_BrightnessSlider , 2 , LV_PART_KNOB | LV_STATE_DEFAULT );
4242lv_obj_set_style_shadow_ofs_y (ui_BrightnessSlider , 2 , LV_PART_KNOB | LV_STATE_DEFAULT );
4343
44- ui_WiFiSettings = lv_dropdown_create (ui_SettingsScreen );
45- lv_dropdown_set_options ( ui_WiFiSettings , "Przystan na Kawe\nKOCMARLI\nTest" );
46- lv_dropdown_set_text ( ui_WiFiSettings , "None" );
47- lv_obj_set_width ( ui_WiFiSettings , 100 );
48- lv_obj_set_height ( ui_WiFiSettings , LV_SIZE_CONTENT ); /// 1
49- lv_obj_set_x ( ui_WiFiSettings , 50 );
50- lv_obj_set_y ( ui_WiFiSettings , 1 );
51- lv_obj_set_align ( ui_WiFiSettings , LV_ALIGN_CENTER );
52- lv_obj_add_flag ( ui_WiFiSettings , LV_OBJ_FLAG_SCROLL_ON_FOCUS ); /// Flags
53- lv_obj_clear_flag ( ui_WiFiSettings , LV_OBJ_FLAG_CLICKABLE ); /// Flags
54-
55-
56-
5744ui_BrightnessLabel = lv_label_create (ui_SettingsScreen );
5845lv_obj_set_width ( ui_BrightnessLabel , LV_SIZE_CONTENT ); /// 1
5946lv_obj_set_height ( ui_BrightnessLabel , LV_SIZE_CONTENT ); /// 1
@@ -62,13 +49,13 @@ lv_obj_set_y( ui_BrightnessLabel, -35 );
6249lv_obj_set_align ( ui_BrightnessLabel , LV_ALIGN_CENTER );
6350lv_label_set_text (ui_BrightnessLabel ,"Brightness" );
6451
65- ui_WiFiLabel = lv_label_create (ui_SettingsScreen );
66- lv_obj_set_width ( ui_WiFiLabel , LV_SIZE_CONTENT ); /// 1
67- lv_obj_set_height ( ui_WiFiLabel , LV_SIZE_CONTENT ); /// 1
68- lv_obj_set_x ( ui_WiFiLabel , -38 );
69- lv_obj_set_y ( ui_WiFiLabel , 0 );
70- lv_obj_set_align ( ui_WiFiLabel , LV_ALIGN_CENTER );
71- lv_label_set_text (ui_WiFiLabel , "WiFi " );
52+ ui_BLELabel = lv_label_create (ui_SettingsScreen );
53+ lv_obj_set_width ( ui_BLELabel , LV_SIZE_CONTENT ); /// 1
54+ lv_obj_set_height ( ui_BLELabel , LV_SIZE_CONTENT ); /// 1
55+ lv_obj_set_x ( ui_BLELabel , -56 );
56+ lv_obj_set_y ( ui_BLELabel , 0 );
57+ lv_obj_set_align ( ui_BLELabel , LV_ALIGN_CENTER );
58+ lv_label_set_text (ui_BLELabel , "Bluetooth " );
7259
7360ui_VersionText = lv_label_create (ui_SettingsScreen );
7461lv_obj_set_width ( ui_VersionText , LV_SIZE_CONTENT ); /// 1
@@ -78,8 +65,16 @@ lv_obj_set_y( ui_VersionText, 72 );
7865lv_obj_set_align ( ui_VersionText , LV_ALIGN_CENTER );
7966lv_label_set_text (ui_VersionText ,"Version: 0.1.0" );
8067
68+ ui_BluetoothSwitch = lv_switch_create (ui_SettingsScreen );
69+ lv_obj_set_width ( ui_BluetoothSwitch , 54 );
70+ lv_obj_set_height ( ui_BluetoothSwitch , 25 );
71+ lv_obj_set_x ( ui_BluetoothSwitch , 49 );
72+ lv_obj_set_y ( ui_BluetoothSwitch , -1 );
73+ lv_obj_set_align ( ui_BluetoothSwitch , LV_ALIGN_CENTER );
74+
75+
8176lv_obj_add_event_cb (ui_BrightnessSlider , ui_event_BrightnessSlider , LV_EVENT_ALL , NULL );
82- lv_obj_add_event_cb (ui_WiFiSettings , ui_event_WiFiSettings , LV_EVENT_ALL , NULL );
77+ lv_obj_add_event_cb (ui_BluetoothSwitch , ui_event_BluetoothSwitch , LV_EVENT_ALL , NULL );
8378lv_obj_add_event_cb (ui_SettingsScreen , ui_event_SettingsScreen , LV_EVENT_ALL , NULL );
8479
8580}
0 commit comments