mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibGfx: Convert String::format() => String::formatted()
This commit is contained in:
parent
d996e43df6
commit
e875d4e044
4 changed files with 5 additions and 7 deletions
|
@ -40,12 +40,12 @@ namespace Gfx {
|
|||
|
||||
String Color::to_string() const
|
||||
{
|
||||
return String::format("#%02x%02x%02x%02x", red(), green(), blue(), alpha());
|
||||
return String::formatted("#{:02x}{:02x}{:02x}{:02x}", red(), green(), blue(), alpha());
|
||||
}
|
||||
|
||||
String Color::to_string_without_alpha() const
|
||||
{
|
||||
return String::format("#%02x%02x%02x", red(), green(), blue());
|
||||
return String::formatted("#{:02x}{:02x}{:02x}", red(), green(), blue());
|
||||
}
|
||||
|
||||
static Optional<Color> parse_rgb_color(const StringView& string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue