Teknomancer / beezer

Beezer is an archiving tool for the Haiku operating system.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Allow customizing list entry height #22

Open Teknomancer opened 3 years ago

Teknomancer commented 3 years ago

I know we will eventually will be switching to BColumnListView (or whatever Haiku has) but that's a much larger and more pervasive change and is a long-term action item.

The height calculation logic already seems makes to respect the font-height internally (derived from BListItem) but it would be nice to have a few extra choices like: Compact, Normal, Relaxed and Loose. This would be presented to the user as a BMenuField option in Interface settings.

Refer ListEntry.h kListEntryHeight. This is passed in as a minimum height each list entry (row) in the archive list has. A value of 20.0 is still quite tightly packed at least with the font-size I'm using, having a few more options would be good.

This requires a bit of experimentation with different font sizes. The padding should probably be relative to the font size. This may require modifying CLVListItem::Update.