void kana_app_settings_init() { for(int i=0; i < LIST_TITLES_LEN; i++) setting_cell_sel_subtitles[i] = menu_get_option(i); simpleMenu = kana_app_simple_menu_init( window_create(), "Settings", LIST_TITLES_LEN, setting_cell_titles, setting_cell_sel_subtitles, NULL, menu_callback_click ); #ifdef PBL_COLOR kana_app_simple_menu_set_color( simpleMenu, GColorVeryLightBlue, GColorWhite, GColorWhite, GColorVeryLightBlue); #endif }
void kana_app_settings_init() { for(int i=0; i < LIST_TITLES_LEN; i++) setting_cell_sel_subtitles[i] = menu_get_option(i); simpleMenu = kana_app_simple_menu_init( window_create(), "Settings", LIST_TITLES_LEN, setting_cell_titles, setting_cell_sel_subtitles, NULL, menu_callback_click ); #ifdef PBL_COLOR kana_app_simple_menu_set_color( simpleMenu, COLOR_BG, COLOR_TEXT, COLOR_HIGHLIGHT, COLOR_HIGHLIGHT_TEXT); #endif }
static void menu_callback_click(MenuLayer* layer, MenuIndex* index, void* data) { menu_rotate_option(index->row); (simpleMenu->cellItemsSubtitle)[index->row] = menu_get_option(index->row); layer_mark_dirty(menu_layer_get_layer(simpleMenu->menuLayer)); }