mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +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
Notes:
sideshowbarker
2024-07-18 21:29:41 +09:00
Author: https://github.com/thankyouverycool
Commit: 0fc81d23f4
Pull-request: https://github.com/SerenityOS/serenity/pull/5741
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/emanuele6
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