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:
parent
377afff33a
commit
0b29c5e41d
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue