static L filesForNiceButtons(L l, IVF1 action) { ret map(l, f -> { var tia = textImageActionToolTip( f.getName(), isImageFile(f) ? #1101250 : #1101231, r { pcallF(action, f) }, f2s(f) + " (" + toK(fileSize(f)) + " K)"); tia.file = f; ret tia; }); } static L filesForNiceButtons(L l) { ret filesForNiceButtons(l, f -> { thread { genericUI_openFile(f); }}); }