@@ -51,7 +51,8 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
5151 notificatioManager {notificatioManager},
5252 settingsController {settingsController},
5353 motionController {motionController} {
54- /* This sets the watchface number to return to after leaving the menu */
54+
55+ // This sets the watchface number to return to after leaving the menu
5556 settingsController.SetClockFace (2 );
5657
5758 displayedChar[0 ] = 0 ;
@@ -60,40 +61,40 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
6061 displayedChar[3 ] = 0 ;
6162 displayedChar[4 ] = 0 ;
6263
63- /* Create a 200px wide background rectangle */
64+ // Create a 200px wide background rectangle
6465 timebar = lv_obj_create (lv_scr_act (), nullptr );
65- lv_obj_set_style_local_bg_color (timebar, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex ( 0x000000 ) );
66+ lv_obj_set_style_local_bg_color (timebar, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, pts_colors[settingsController. GetPTSColorBG ()] );
6667 lv_obj_set_style_local_radius (timebar, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, 0 );
6768 lv_obj_set_size (timebar, 200 , 240 );
6869 lv_obj_align (timebar, lv_scr_act (), LV_ALIGN_IN_TOP_LEFT, 5 , 0 );
6970
70- /* Display the time */
71+ // Display the time
7172 timeDD1 = lv_label_create (lv_scr_act (), nullptr );
7273 lv_obj_set_style_local_text_font (timeDD1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &open_sans_light);
73- lv_obj_set_style_local_text_color (timeDD1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex ( 0x008080 ) );
74+ lv_obj_set_style_local_text_color (timeDD1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, pts_colors[settingsController. GetPTSColorTime ()] );
7475 lv_label_set_text (timeDD1, " 12" );
7576 lv_obj_align (timeDD1, timebar, LV_ALIGN_IN_TOP_MID, 5 , 5 );
7677
7778 timeDD2 = lv_label_create (lv_scr_act (), nullptr );
7879 lv_obj_set_style_local_text_font (timeDD2, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &open_sans_light);
79- lv_obj_set_style_local_text_color (timeDD2, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex ( 0x008080 ) );
80+ lv_obj_set_style_local_text_color (timeDD2, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, pts_colors[settingsController. GetPTSColorTime ()] );
8081 lv_label_set_text (timeDD2, " 34" );
8182 lv_obj_align (timeDD2, timebar, LV_ALIGN_IN_BOTTOM_MID, 5 , -5 );
8283
8384 timeAMPM = lv_label_create (lv_scr_act (), nullptr );
84- lv_obj_set_style_local_text_color (timeAMPM, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex ( 0x008080 ) );
85+ lv_obj_set_style_local_text_color (timeAMPM, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, pts_colors[settingsController. GetPTSColorTime ()] );
8586 lv_obj_set_style_local_text_line_space (timeAMPM, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, -3 );
8687 lv_label_set_text (timeAMPM, " " );
8788 lv_obj_align (timeAMPM, timebar, LV_ALIGN_IN_BOTTOM_LEFT, 2 , -20 );
8889
89- /* Create a 40px wide bar down the right side of the screen */
90+ // Create a 40px wide bar down the right side of the screen
9091 sidebar = lv_obj_create (lv_scr_act (), nullptr );
91- lv_obj_set_style_local_bg_color (sidebar, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex ( 0x008080 ) );
92+ lv_obj_set_style_local_bg_color (sidebar, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, pts_colors[settingsController. GetPTSColorBar ()] );
9293 lv_obj_set_style_local_radius (sidebar, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, 0 );
9394 lv_obj_set_size (sidebar, 40 , 240 );
9495 lv_obj_align (sidebar, lv_scr_act (), LV_ALIGN_IN_TOP_RIGHT, 0 , 0 );
9596
96- /* Display icons */
97+ // Display icons
9798 batteryIcon = lv_label_create (lv_scr_act (), nullptr );
9899 lv_obj_set_style_local_text_color (batteryIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x000000 ));
99100 lv_label_set_text (batteryIcon, Symbols::batteryFull);
@@ -111,7 +112,7 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
111112 lv_obj_set_style_local_text_color (notificationIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x000000 ));
112113 lv_obj_align (notificationIcon, sidebar, LV_ALIGN_IN_TOP_MID, 0 , 40 );
113114
114- /* Calendar icon */
115+ // Calendar icon
115116 calendarOuter = lv_obj_create (lv_scr_act (), nullptr );
116117 lv_obj_set_style_local_bg_color (calendarOuter, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x000000 ));
117118 lv_obj_set_style_local_radius (calendarOuter, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, 0 );
@@ -148,7 +149,7 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
148149 lv_obj_set_size (calendarCrossBar2, 8 , 3 );
149150 lv_obj_align (calendarCrossBar2, calendarBar2, LV_ALIGN_IN_BOTTOM_MID, 0 , 0 );
150151
151- /* Display date */
152+ // Display date
152153 dateDayOfWeek = lv_label_create (lv_scr_act (), nullptr );
153154 lv_obj_set_style_local_text_color (dateDayOfWeek, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x000000 ));
154155 lv_label_set_text (dateDayOfWeek, " THU" );
@@ -184,7 +185,7 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
184185 lv_obj_set_style_local_line_width (stepGauge, LV_GAUGE_PART_MAIN, LV_STATE_DEFAULT, 4 );
185186 lv_obj_set_style_local_line_color (stepGauge, LV_GAUGE_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
186187 lv_obj_set_style_local_line_opa (stepGauge, LV_GAUGE_PART_NEEDLE, LV_STATE_DEFAULT, LV_OPA_COVER);
187- lv_obj_set_style_local_line_width (stepGauge, LV_GAUGE_PART_NEEDLE, LV_STATE_DEFAULT, 4 );
188+ lv_obj_set_style_local_line_width (stepGauge, LV_GAUGE_PART_NEEDLE, LV_STATE_DEFAULT, 3 );
188189 lv_obj_set_style_local_pad_inner (stepGauge, LV_GAUGE_PART_NEEDLE, LV_STATE_DEFAULT, 4 );
189190
190191 backgroundLabel = lv_label_create (lv_scr_act (), nullptr );
0 commit comments