mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +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
|
@ -51,6 +51,8 @@ public:
|
|||
void set_should_fill_selected_rows(bool fill) { m_should_fill_selected_rows = fill; }
|
||||
bool should_fill_selected_rows() const { return m_should_fill_selected_rows; }
|
||||
|
||||
virtual int vertical_padding() const override { return m_vertical_padding; }
|
||||
|
||||
protected:
|
||||
TreeView();
|
||||
|
||||
|
@ -89,6 +91,7 @@ private:
|
|||
RefPtr<Gfx::Bitmap> m_collapse_bitmap;
|
||||
|
||||
bool m_should_fill_selected_rows { false };
|
||||
int m_vertical_padding { 6 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue