summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-20 18:40:48 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-20 20:55:29 +0200
commit6a012ad79f95673a36531c27c81e0efa6c6ec664 (patch)
tree54777eacd8382e76f87d578e57ac080cb531c0e1 /Userland/DevTools/HackStudio
parent068ddf4513281c0aa183552273b3b9a811b78263 (diff)
downloadserenity-6a012ad79f95673a36531c27c81e0efa6c6ec664.zip
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. :^)
Diffstat (limited to 'Userland/DevTools/HackStudio')
-rw-r--r--Userland/DevTools/HackStudio/EditorWrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/EditorWrapper.cpp b/Userland/DevTools/HackStudio/EditorWrapper.cpp
index 128eff2ca1..26ff288ec8 100644
--- a/Userland/DevTools/HackStudio/EditorWrapper.cpp
+++ b/Userland/DevTools/HackStudio/EditorWrapper.cpp
@@ -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(); }