@@ -133,8 +133,6 @@ class NotesApp final : public App {
133133 lv_dropdown_set_text (uiDropDownMenu, " Menu" );
134134 lv_dropdown_set_symbol (uiDropDownMenu, LV_SYMBOL_DOWN);
135135 lv_dropdown_set_selected_highlight (uiDropDownMenu, false );
136- lv_obj_set_style_border_color (uiDropDownMenu, lv_color_hex (0xFAFAFA ), LV_PART_MAIN);
137- lv_obj_set_style_border_width (uiDropDownMenu, 1 , LV_PART_MAIN);
138136 lv_obj_align (uiDropDownMenu, LV_ALIGN_RIGHT_MID, 0 , 0 );
139137 lv_obj_add_event_cb (uiDropDownMenu,
140138 [](lv_event_t * e) {
@@ -153,24 +151,33 @@ class NotesApp final : public App {
153151 lv_obj_set_height (wrapper, LV_PCT (100 ));
154152 lv_obj_set_style_pad_all (wrapper, 0 , LV_PART_MAIN);
155153 lv_obj_set_style_pad_row (wrapper, 0 , LV_PART_MAIN);
156- lv_obj_set_style_border_width (wrapper, 0 , 0 );
154+ lv_obj_set_style_border_width (wrapper, 0 , LV_PART_MAIN );
157155 lv_obj_remove_flag (wrapper, LV_OBJ_FLAG_SCROLLABLE);
158156
159157 uiNoteText = lv_textarea_create (wrapper);
160158 lv_obj_set_width (uiNoteText, LV_PCT (100 ));
161159 lv_obj_set_height (uiNoteText, LV_PCT (86 ));
162160 lv_textarea_set_password_mode (uiNoteText, false );
163- lv_obj_set_style_bg_color (uiNoteText, lv_color_hex (0x262626 ), LV_PART_MAIN);
161+ if (lv_display_get_color_format (lv_obj_get_display (parent)) != LV_COLOR_FORMAT_L8) {
162+ lv_obj_set_style_bg_color (uiNoteText, lv_color_hex (0x262626 ), LV_PART_MAIN);
163+ }
164164 lv_textarea_set_placeholder_text (uiNoteText, " Notes..." );
165165
166166 lv_obj_t * footer = lv_obj_create (wrapper);
167167 lv_obj_set_flex_flow (footer, LV_FLEX_FLOW_ROW);
168168 lv_obj_set_flex_align (footer, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);
169- lv_obj_set_style_bg_color (footer, lv_color_hex (0x262626 ), LV_PART_MAIN);
169+ if (lv_display_get_color_format (lv_obj_get_display (parent)) == LV_COLOR_FORMAT_L8) {
170+ lv_obj_set_style_bg_color (footer, lv_color_hex (0xEEEEEE ), LV_PART_MAIN);
171+ lv_obj_set_style_border_width (footer, 1 , LV_PART_MAIN);
172+ lv_obj_set_style_border_color (footer, lv_theme_get_color_secondary (footer), LV_PART_MAIN);
173+ lv_obj_set_style_border_side (footer, LV_BORDER_SIDE_TOP, LV_PART_MAIN);
174+ } else {
175+ lv_obj_set_style_bg_color (footer, lv_color_hex (0x262626 ), LV_PART_MAIN);
176+ lv_obj_set_style_border_width (footer, 0 , LV_PART_MAIN);
177+ }
170178 lv_obj_set_width (footer, LV_PCT (100 ));
171179 lv_obj_set_height (footer, LV_PCT (14 ));
172180 lv_obj_set_style_pad_all (footer, 0 , LV_PART_MAIN);
173- lv_obj_set_style_border_width (footer, 0 , 0 );
174181 lv_obj_remove_flag (footer, LV_OBJ_FLAG_SCROLLABLE);
175182
176183 uiCurrentFileName = lv_label_create (footer);
0 commit comments