mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
Userland: Use Font::pixel_size_rounded_up() instead of glyph_height()
The only remaining clients of this API are specific to bitmap fonts and editing thereof.
This commit is contained in:
parent
93c9344e35
commit
b71c7a6e44
32 changed files with 63 additions and 65 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
|
||||
class AbstractTableView : public AbstractView {
|
||||
public:
|
||||
int row_height() const { return font().glyph_height() + vertical_padding(); }
|
||||
int row_height() const { return font().pixel_size_rounded_up() + vertical_padding(); }
|
||||
|
||||
virtual int horizontal_padding() const { return m_horizontal_padding; }
|
||||
void set_horizontal_padding(int padding) { m_horizontal_padding = padding; }
|
||||
|
@ -122,7 +122,7 @@ private:
|
|||
bool m_highlight_selected_rows { true };
|
||||
|
||||
int m_vertical_padding { 8 };
|
||||
int m_horizontal_padding { font().glyph_height() / 2 };
|
||||
int m_horizontal_padding { font().pixel_size_rounded_up() / 2 };
|
||||
int m_tab_moves { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue