mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 22:52:52 +00:00
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:
parent
5ace66a903
commit
a6a8ba80fc
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/awesomekling
Commit: a6a8ba80fc
11 changed files with 38 additions and 38 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue