mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
LibVT: Relayout TerminalWidget on font change
We were not recomputing the internal dimensions after a font changed, which caused things to look very off. It's still not perfect as we're always using the same (small) font for bold text, which obviously sticks out like a sore pinky when the rest of the terminal text is large.
This commit is contained in:
parent
53e204dfb0
commit
56974f76be
2 changed files with 23 additions and 4 deletions
|
@ -72,6 +72,7 @@ private:
|
|||
virtual void focusin_event(CEvent&) override;
|
||||
virtual void focusout_event(CEvent&) override;
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
virtual void did_change_font() override;
|
||||
|
||||
// ^TerminalClient
|
||||
virtual void beep() override;
|
||||
|
@ -87,6 +88,8 @@ private:
|
|||
void update_cursor();
|
||||
void invalidate_cursor();
|
||||
|
||||
void relayout(const Size&);
|
||||
|
||||
Size compute_base_size() const;
|
||||
int first_selection_column_on_row(int row) const;
|
||||
int last_selection_column_on_row(int row) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue