mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:47:36 +00:00
LibGFX: Move default_xxx_font() methods from Font to FontDatabase
When we have an abstract font class it makes no sense to keep these methods in the Font class.
This commit is contained in:
parent
1a072a61fb
commit
b4d1390714
48 changed files with 152 additions and 115 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/TextBox.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
CalculatorWidget::CalculatorWidget()
|
||||
|
@ -39,7 +40,7 @@ CalculatorWidget::CalculatorWidget()
|
|||
m_entry = add<GUI::TextBox>();
|
||||
m_entry->set_relative_rect(5, 5, 244, 26);
|
||||
m_entry->set_text_alignment(Gfx::TextAlignment::CenterRight);
|
||||
m_entry->set_font(Gfx::Font::default_fixed_width_font());
|
||||
m_entry->set_font(Gfx::FontDatabase::default_fixed_width_font());
|
||||
|
||||
m_label = add<GUI::Label>();
|
||||
m_label->set_relative_rect(12, 42, 27, 27);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue