mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibGUI: Make table view row height+padding font-size-relative
This makes tables look a lot nicer with different-sized fonts. :^)
This commit is contained in:
parent
8961148cdf
commit
688675e89b
Notes:
sideshowbarker
2024-07-19 01:45:57 +09:00
Author: https://github.com/awesomekling
Commit: 688675e89b
5 changed files with 18 additions and 24 deletions
|
@ -39,8 +39,7 @@ public:
|
|||
|
||||
class AbstractTableView : public AbstractView {
|
||||
public:
|
||||
int row_height() const { return m_row_height; }
|
||||
void set_row_height(int);
|
||||
int row_height() const;
|
||||
|
||||
bool alternating_row_colors() const { return m_alternating_row_colors; }
|
||||
void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; }
|
||||
|
@ -60,7 +59,7 @@ public:
|
|||
|
||||
void set_column_painting_delegate(int column, OwnPtr<TableCellPaintingDelegate>);
|
||||
|
||||
int horizontal_padding() const { return m_horizontal_padding; }
|
||||
int horizontal_padding() const;
|
||||
|
||||
Gfx::IntPoint adjusted_position(const Gfx::IntPoint&) const;
|
||||
|
||||
|
@ -123,8 +122,6 @@ private:
|
|||
|
||||
bool m_alternating_row_colors { true };
|
||||
bool m_highlight_selected_rows { true };
|
||||
int m_horizontal_padding { 5 };
|
||||
int m_row_height { 16 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue