diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-20 18:40:48 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-20 20:55:29 +0200 |
commit | 6a012ad79f95673a36531c27c81e0efa6c6ec664 (patch) | |
tree | 54777eacd8382e76f87d578e57ac080cb531c0e1 /Userland/Applications/HexEditor/HexEditor.cpp | |
parent | 068ddf4513281c0aa183552273b3b9a811b78263 (diff) | |
download | serenity-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/Applications/HexEditor/HexEditor.cpp')
-rw-r--r-- | Userland/Applications/HexEditor/HexEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp index bc57d5b4b6..bf0dab3738 100644 --- a/Userland/Applications/HexEditor/HexEditor.cpp +++ b/Userland/Applications/HexEditor/HexEditor.cpp @@ -497,7 +497,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) painter.draw_text( side_offset_rect, line, - is_current_line ? Gfx::FontDatabase::default_bold_font() : font(), + is_current_line ? font().bold_variant() : font(), Gfx::TextAlignment::TopLeft, is_current_line ? palette().ruler_active_text() : palette().ruler_inactive_text()); } |