application/main.c

changeset 745
a4ee36ff7147
parent 742
f63d8125fcbd
child 754
fb5f560e81d9
equal deleted inserted replaced
744:0528926422da 745:a4ee36ff7147
463 } 463 }
464 464
465 UiBool table_getstyle(UiList *list, void *elm, int row, int col, void *userdata, UiTextStyle *style) { 465 UiBool table_getstyle(UiList *list, void *elm, int row, int col, void *userdata, UiTextStyle *style) {
466 if(row < 2 && col != -1) { 466 if(row < 2 && col != -1) {
467 style->text_style = UI_TEXT_STYLE_BOLD; 467 style->text_style = UI_TEXT_STYLE_BOLD;
468 if(col == 2) {
469 style->text_style = UI_TEXT_STYLE_ITALIC;
470 }
471 if(row == 1) {
472 style->text_style |= UI_TEXT_STYLE_UNDERLINE;
473 }
468 style->fg.blue = col == 1 ? 255 : 0; 474 style->fg.blue = col == 1 ? 255 : 0;
469 style->fg.green = col == 2 ? 255 : 0; 475 style->fg.green = col == 2 ? 255 : 0;
470 style->fg.red = col == 5 ? 255 : 0; 476 style->fg.red = col == 5 ? 255 : 0;
477 style->fg_set = TRUE;
471 return TRUE; 478 return TRUE;
472 } 479 }
473 return FALSE; 480 return FALSE;
474 } 481 }
475 482

mercurial