mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
LibGfx: Remove Gfx::FontDatabase::default_bold_font()
Instead use default_font().bold_variant() in cases where we want a bold variant of the default font. :^)
This commit is contained in:
parent
068ddf4513
commit
6a012ad79f
24 changed files with 33 additions and 46 deletions
|
@ -66,7 +66,8 @@ EditorWrapper::~EditorWrapper()
|
|||
|
||||
void EditorWrapper::set_editor_has_focus(Badge<Editor>, bool focus)
|
||||
{
|
||||
m_filename_label->set_font(focus ? Gfx::FontDatabase::default_bold_font() : Gfx::FontDatabase::default_font());
|
||||
auto& font = Gfx::FontDatabase::default_font();
|
||||
m_filename_label->set_font(focus ? font.bold_variant() : font);
|
||||
}
|
||||
|
||||
LanguageClient& EditorWrapper::language_client() { return m_editor->language_client(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue