mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:47:34 +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
|
@ -72,7 +72,7 @@ ShutdownDialog::ShutdownDialog()
|
|||
auto& label = right_container.add<GUI::Label>("What would you like to do?");
|
||||
label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
label.set_fixed_height(22);
|
||||
label.set_font(Gfx::FontDatabase::default_bold_font());
|
||||
label.set_font(Gfx::FontDatabase::default_font().bold_variant());
|
||||
|
||||
for (size_t i = 0; i < options.size(); i++) {
|
||||
auto action = options[i];
|
||||
|
|
|
@ -89,7 +89,7 @@ void TaskbarButton::paint_event(GUI::PaintEvent& event)
|
|||
{
|
||||
VERIFY(icon());
|
||||
auto& icon = *this->icon();
|
||||
auto& font = is_checked() ? Gfx::FontDatabase::default_bold_font() : this->font();
|
||||
auto& font = is_checked() ? this->font().bold_variant() : this->font();
|
||||
auto& window = WindowList::the().ensure_window(m_identifier);
|
||||
|
||||
GUI::Painter painter(*this);
|
||||
|
|
|
@ -65,7 +65,7 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu)
|
|||
main_widget.layout()->set_margins({ 3, 3, 3, 1 });
|
||||
|
||||
m_start_button = GUI::Button::construct("Serenity");
|
||||
m_start_button->set_font(Gfx::FontDatabase::default_bold_font());
|
||||
m_start_button->set_font(Gfx::FontDatabase::default_font().bold_variant());
|
||||
m_start_button->set_icon_spacing(0);
|
||||
m_start_button->set_fixed_size(80, 21);
|
||||
auto app_icon = GUI::Icon::default_icon("ladyball");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue