1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

PixelPaint: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:28:58 +02:00 committed by Andreas Kling
parent 377afff33a
commit 0b29c5e41d
2 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@ void ToolboxWidget::setup_tools()
button.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
button.set_preferred_size(0, 32);
button.set_checkable(true);
button.set_icon(Gfx::Bitmap::load_from_file(String::format("/res/icons/pixelpaint/%s.png", icon_name.to_string().characters())));
button.set_icon(Gfx::Bitmap::load_from_file(String::formatted("/res/icons/pixelpaint/{}.png", icon_name)));
return button;
};