mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +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
11 changed files with 38 additions and 38 deletions
|
@ -169,7 +169,7 @@ private:
|
|||
{
|
||||
GUI::Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
painter.clear_rect(event.rect(), Color::from_rgba(0));
|
||||
painter.clear_rect(event.rect(), Color::from_argb(0));
|
||||
|
||||
auto& audio_bitmap = choose_bitmap_from_volume();
|
||||
painter.blit({}, audio_bitmap, audio_bitmap.rect());
|
||||
|
|
|
@ -43,7 +43,7 @@ void KeymapStatusWindow::wm_event(GUI::WMEvent& event)
|
|||
void KeymapStatusWindow::set_keymap_text(const String& keymap)
|
||||
{
|
||||
GUI::Painter painter(*m_status_widget);
|
||||
painter.clear_rect(m_status_widget->rect(), Color::from_rgba(0));
|
||||
painter.clear_rect(m_status_widget->rect(), Color::from_argb(0));
|
||||
|
||||
m_status_widget->set_tooltip(keymap);
|
||||
m_status_widget->set_text(keymap.substring(0, 2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue