1
Fork 0
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:
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

@ -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 };
};
}