LibGfx: Rename Color::from_rgba() => Color::from_argb()

This matches the rename of RGBA32 to ARGB32. It also makes more sense
when you see it used with 32-bit hexadecimal literals:

Before:
    Color::from_rgba(0xaarrggbb)

After:
    Color::from_argb(0xaarrggbb)
This commit is contained in:
Andreas Kling 2022-03-04 22:28:59 +01:00
parent 5ace66a903
commit a6a8ba80fc
Notes: sideshowbarker 2024-07-17 18:49:10 +09:00
11 changed files with 38 additions and 38 deletions

View file

@ -179,19 +179,19 @@ Vector<String> DiffViewer::split_to_lines(const String& text)
Gfx::Color DiffViewer::red_background()
{
static Gfx::Color color = Gfx::Color::from_rgba(0x88ff0000);
static Gfx::Color color = Gfx::Color::from_argb(0x88ff0000);
return color;
}
Gfx::Color DiffViewer::green_background()
{
static Gfx::Color color = Gfx::Color::from_rgba(0x8800ff00);
static Gfx::Color color = Gfx::Color::from_argb(0x8800ff00);
return color;
}
Gfx::Color DiffViewer::gray_background()
{
static Gfx::Color color = Gfx::Color::from_rgba(0x88888888);
static Gfx::Color color = Gfx::Color::from_argb(0x88888888);
return color;
}