mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +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,9 @@ public:
|
|||
GridStyle grid_style() const { return m_grid_style; }
|
||||
void set_grid_style(GridStyle);
|
||||
|
||||
void set_highlight_key_column(bool b) { m_highlight_key_column = b; }
|
||||
bool is_key_column_highlighted() const { return m_highlight_key_column; }
|
||||
|
||||
virtual void move_cursor(CursorMovement, SelectionUpdate) override;
|
||||
|
||||
protected:
|
||||
|
@ -61,6 +64,8 @@ protected:
|
|||
|
||||
private:
|
||||
GridStyle m_grid_style { GridStyle::None };
|
||||
|
||||
bool m_highlight_key_column { true };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue