FileBrowserComponent: row height and fonts

Hi guys,

I need to change the row height for this component, but I can’t find anything. Forcing an height in the drawFileBrowserRow LaF method won’t have the desired results.

EDIT: actually you have to dynamic cast to FileListComponent… could be made easier and inside the FileBrowserComponent

dynamic_cast<FileListComponent*>(myBrowser->getDisplayComponent())->setRowHeight(44);

But I’m having real struggle to change the height for the filename box and label fonts. Calling setFont on filenameBox in layoutFileBrowserComponent won’t have any effect, and the related label is not accessible from there.

It shouldn’t be that much of an effort to just change a font size in a component, guys…

Thanks,
Luca

1 Like

bump

1 Like

Same issues. What is the expected way to set the font for the FileBrowserComponent (as a list)?