1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 15:08:12 +00:00

LibGUI: Add variable padding and center bitmaps in TableViews

This lets us make nicer looking bitmap tables and fixes a content
rect issue in TreeView. Also makes key column highlighting optional
This commit is contained in:
thankyouverycool 2021-03-11 10:35:40 -05:00 committed by Andreas Kling
parent 142ca4b818
commit 0fc81d23f4
5 changed files with 28 additions and 16 deletions

View file

@ -392,14 +392,4 @@ void AbstractTableView::keydown_event(KeyEvent& event)
AbstractView::keydown_event(event);
}
int AbstractTableView::horizontal_padding() const
{
return font().glyph_height() / 2;
}
int AbstractTableView::row_height() const
{
return font().glyph_height() + icon_padding();
}
}