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 | |
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')
5 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/Calendar/AddEventDialog.cpp b/Userland/Applications/Calendar/AddEventDialog.cpp index 0aa92a8140..9f972ea291 100644 --- a/Userland/Applications/Calendar/AddEventDialog.cpp +++ b/Userland/Applications/Calendar/AddEventDialog.cpp @@ -46,7 +46,7 @@ AddEventDialog::AddEventDialog(Core::DateTime date_time, Window* parent_window) auto& add_label = top_container.add<GUI::Label>("Add title & date:"); add_label.set_text_alignment(Gfx::TextAlignment::CenterLeft); add_label.set_fixed_height(14); - add_label.set_font(Gfx::FontDatabase::default_bold_font()); + add_label.set_font(Gfx::FontDatabase::default_font().bold_variant()); auto& event_title_textbox = top_container.add<GUI::TextBox>(); event_title_textbox.set_fixed_height(20); 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()); } diff --git a/Userland/Applications/SystemMonitor/MemoryStatsWidget.cpp b/Userland/Applications/SystemMonitor/MemoryStatsWidget.cpp index 70266c8925..8b66213a7c 100644 --- a/Userland/Applications/SystemMonitor/MemoryStatsWidget.cpp +++ b/Userland/Applications/SystemMonitor/MemoryStatsWidget.cpp @@ -42,7 +42,7 @@ MemoryStatsWidget::MemoryStatsWidget(GraphWidget& graph) container.set_layout<GUI::HorizontalBoxLayout>(); container.set_fixed_size(275, 12); auto& description_label = container.add<GUI::Label>(description); - description_label.set_font(Gfx::FontDatabase::default_bold_font()); + description_label.set_font(Gfx::FontDatabase::default_font().bold_variant()); description_label.set_text_alignment(Gfx::TextAlignment::CenterLeft); auto& label = container.add<GUI::Label>(); label.set_text_alignment(Gfx::TextAlignment::CenterRight); diff --git a/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp b/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp index 9b17340f65..2ff01db2ba 100644 --- a/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp +++ b/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp @@ -45,7 +45,7 @@ public: if (role == GUI::ModelRole::Font) { if (index.column() == 0) { - return Gfx::FontDatabase::default_bold_font(); + return Gfx::FontDatabase::default_font().bold_variant(); } } diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index 4220c0aa8e..58bfa8fd21 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -456,7 +456,7 @@ NonnullRefPtr<GUI::Window> build_process_window(pid_t pid) } auto& process_name_label = hero_container.add<GUI::Label>(); - process_name_label.set_font(Gfx::FontDatabase::default_bold_font()); + process_name_label.set_font(Gfx::FontDatabase::default_font().bold_variant()); process_name_label.set_text_alignment(Gfx::TextAlignment::CenterLeft); process_name_label.set_text(String::formatted("{} (PID {})", process_index.sibling_at_column(ProcessModel::Column::Name).data().to_string(), |