mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-12 10:37:02 +00:00
UI: Improve Download Manager's dark mode support
This commit is contained in:
parent
2e33b16513
commit
2694be739e
1 changed files with 2 additions and 3 deletions
|
|
@ -6,7 +6,6 @@
|
|||
#include "wxgui/components/wxGameList.h"
|
||||
#include "wxgui/helpers/wxCustomEvents.h"
|
||||
|
||||
#include <wx/imaglist.h>
|
||||
#include <wx/wupdlock.h>
|
||||
#include <wx/menu.h>
|
||||
#include <wx/msgdlg.h>
|
||||
|
|
@ -167,8 +166,8 @@ wxItemAttr* wxDownloadManagerList::OnGetItemAttr(long item) const
|
|||
}
|
||||
}
|
||||
|
||||
const wxColour kSecondColor{ 0xFDF9F2 };
|
||||
static wxListItemAttr s_coloured_attr(GetTextColour(), kSecondColor, GetFont());
|
||||
wxColour bgColourSecondary = wxHelper::CalculateAccentColour(GetBackgroundColour());
|
||||
static wxListItemAttr s_coloured_attr(GetTextColour(), bgColourSecondary, GetFont());
|
||||
return item % 2 == 0 ? nullptr : &s_coloured_attr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue