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:
parent
142ca4b818
commit
0fc81d23f4
5 changed files with 28 additions and 16 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue