mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +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
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue