mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
1a072a61fb
commit
b4d1390714
@@ -33,6 +33,7 @@
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
@@ -82,7 +83,7 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window
|
||||
label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
label.set_fixed_height(14);
|
||||
if (bold)
|
||||
label.set_font(Gfx::Font::default_bold_font());
|
||||
label.set_font(Gfx::FontDatabase::default_bold_font());
|
||||
};
|
||||
make_label(m_name, true);
|
||||
// If we are displaying a dialog for an application, insert 'SerenityOS' below the application name
|
||||
|
||||
Reference in New Issue
Block a user