diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-04 22:28:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-04 23:40:21 +0100 |
commit | a6a8ba80fc9c6bb9660407e3a501217602bcc1e3 (patch) | |
tree | 8def05897670a1675e6c4b6e8e30adb91fabf01e /Userland/Games/Chess | |
parent | 5ace66a9037fa6968b417cfb604ae8419be62271 (diff) | |
download | serenity-a6a8ba80fc9c6bb9660407e3a501217602bcc1e3.zip |
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)
Diffstat (limited to 'Userland/Games/Chess')
-rw-r--r-- | Userland/Games/Chess/ChessWidget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Games/Chess/ChessWidget.h b/Userland/Games/Chess/ChessWidget.h index 251aeed437..a62c00d193 100644 --- a/Userland/Games/Chess/ChessWidget.h +++ b/Userland/Games/Chess/ChessWidget.h @@ -114,10 +114,10 @@ private: BoardMarking m_current_marking; Vector<BoardMarking> m_board_markings; BoardTheme m_board_theme { "Beige", Color::from_rgb(0xb58863), Color::from_rgb(0xf0d9b5) }; - Color m_move_highlight_color { Color::from_rgba(0x66ccee00) }; - Color m_marking_primary_color { Color::from_rgba(0x66ff0000) }; - Color m_marking_alternate_color { Color::from_rgba(0x66ffaa00) }; - Color m_marking_secondary_color { Color::from_rgba(0x6655dd55) }; + Color m_move_highlight_color { Color::from_argb(0x66ccee00) }; + Color m_marking_primary_color { Color::from_argb(0x66ff0000) }; + Color m_marking_alternate_color { Color::from_argb(0x66ffaa00) }; + Color m_marking_secondary_color { Color::from_argb(0x6655dd55) }; Chess::Color m_side { Chess::Color::White }; HashMap<Chess::Piece, RefPtr<Gfx::Bitmap>> m_pieces; String m_piece_set; |