mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:08:10 +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
|
@ -33,6 +33,7 @@
|
|||
#include <LibGUI/RadioButton.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
|
||||
struct Option {
|
||||
String title;
|
||||
|
@ -76,7 +77,7 @@ ShutdownDialog::ShutdownDialog()
|
|||
auto& header = main.add<GUI::Label>();
|
||||
header.set_text("What would you like to do?");
|
||||
header.set_fixed_height(16);
|
||||
header.set_font(Gfx::Font::default_bold_font());
|
||||
header.set_font(Gfx::FontDatabase::default_bold_font());
|
||||
|
||||
for (size_t i = 0; i < options.size(); i++) {
|
||||
auto action = options[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue