--- a/application/main.c Sat Aug 30 10:18:09 2025 +0200 +++ b/application/main.c Sat Aug 30 16:02:52 2025 +0200 @@ -460,6 +460,17 @@ return NULL; } +UiBool table_getstyle(UiList *list, void *elm, int row, int col, void *userdata, UiTextStyle *style) { + if(row < 2 && col != -1) { + style->text_style = UI_TEXT_STYLE_BOLD; + style->fg.blue = col == 0 ? 255 : 0; + style->fg.green = col == 1 ? 255 : 0; + style->fg.red = col == 4 ? 255 : 0; + return TRUE; + } + return FALSE; +} + void sourcelist_getvalue(UiList *list, void *sublistdata, void *rowdata, int index, UiSubListItem *item, void *userdata) { item->label = strdup(rowdata); item->eventdata = sublistdata; @@ -628,7 +639,7 @@ UiModel *model = ui_model(obj->ctx, UI_STRING, "col1", UI_INTEGER, "col2", UI_ICON, "col3", UI_ICON_TEXT, "col4", UI_INTEGER, "col5", -1); model->columnsize[0] = -1; ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = TRUE, .contextmenu = menubuilder, .multiselection = TRUE, .fill = TRUE, - .getvalue = table_getvalue, + .getvalue = table_getvalue, .getstyle = table_getstyle, .onactivate = action_table_activate, .onactivatedata = "activate", .onselection = action_table_activate, .onselectiondata = "selection"); ui_hbox(obj, .fill = FALSE) {