mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
Everywhere: Convert a handful of String::format() => formatted()
This commit is contained in:
parent
c90b7881a7
commit
c71807a3fc
23 changed files with 24 additions and 24 deletions
|
@ -161,7 +161,7 @@ private:
|
|||
painter.blit({}, audio_bitmap, audio_bitmap.rect());
|
||||
|
||||
if (m_show_percent) {
|
||||
auto volume_text = m_audio_muted ? "mute" : String::format("%d%%", m_audio_volume);
|
||||
auto volume_text = m_audio_muted ? "mute" : String::formatted("{}%", m_audio_volume);
|
||||
painter.draw_text({ 16, 3, 24, 16 }, volume_text, Gfx::FontDatabase::default_fixed_width_font(), Gfx::TextAlignment::TopLeft, palette().window_text());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue