@@ -190,8 +190,15 @@ static void interface_item_event_cb(lv_event_t * e) {
190190 }
191191
192192 if (type == 0 ) {
193- if (key == LV_KEY_RIGHT ) { theme_idx = (theme_idx + 1 ) % 12 ; changed = true; }
194- if (key == LV_KEY_LEFT ) { theme_idx = (theme_idx - 1 + 12 ) % 12 ; changed = true; }
193+ // Theme selector
194+ if (key == LV_KEY_RIGHT ) {
195+ theme_idx = (theme_idx + 1 ) % 12 ;
196+ changed = true;
197+ }
198+ if (key == LV_KEY_LEFT ) {
199+ theme_idx = (theme_idx - 1 + 12 ) % 12 ;
200+ changed = true;
201+ }
195202 if (changed ) {
196203 lv_label_set_text_fmt (input_obj , "< %s >" , theme_options [theme_idx ]);
197204 lv_obj_set_style_text_color (input_obj , current_theme .text_main , 0 );
@@ -202,17 +209,25 @@ static void interface_item_event_cb(lv_event_t * e) {
202209 buzzer_play_sound_file ("buzzer_scroll_tick" );
203210 }
204211 }
205- else if (type == 1 ) { // Header selector
206212 else if (type == 1 ) {
207- if (key == LV_KEY_RIGHT ) { header_idx = (header_idx + 1 ) % 4 ; changed = true; }
208- if (key == LV_KEY_LEFT ) { header_idx = (header_idx - 1 + 4 ) % 4 ; changed = true; }
213+ // Header selector
214+ if (key == LV_KEY_RIGHT ) {
215+ header_idx = (header_idx + 1 ) % 4 ;
216+ changed = true;
217+ }
218+ if (key == LV_KEY_LEFT ) {
219+ header_idx = (header_idx - 1 + 4 ) % 4 ;
220+ changed = true;
221+ }
209222 if (changed ) {
210223 lv_label_set_text_fmt (input_obj , "< %s >" , header_options [header_idx ]);
211224 interface_save_config ();
212225 refresh_ui_layout ();
213226 buzzer_play_sound_file ("buzzer_scroll_tick" );
214227 }
215228 }
229+ else if (type == 2 ) {
230+ // Footer toggle
216231 if (key == LV_KEY_ENTER || key == LV_KEY_RIGHT || key == LV_KEY_LEFT ) {
217232 hide_footer = !hide_footer ;
218233 update_footer_switch (input_obj );
0 commit comments