mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-13 04:36:59 +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/components/wxGameList.h"
|
||||||
#include "wxgui/helpers/wxCustomEvents.h"
|
#include "wxgui/helpers/wxCustomEvents.h"
|
||||||
|
|
||||||
#include <wx/imaglist.h>
|
|
||||||
#include <wx/wupdlock.h>
|
#include <wx/wupdlock.h>
|
||||||
#include <wx/menu.h>
|
#include <wx/menu.h>
|
||||||
#include <wx/msgdlg.h>
|
#include <wx/msgdlg.h>
|
||||||
|
|
@ -167,8 +166,8 @@ wxItemAttr* wxDownloadManagerList::OnGetItemAttr(long item) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const wxColour kSecondColor{ 0xFDF9F2 };
|
wxColour bgColourSecondary = wxHelper::CalculateAccentColour(GetBackgroundColour());
|
||||||
static wxListItemAttr s_coloured_attr(GetTextColour(), kSecondColor, GetFont());
|
static wxListItemAttr s_coloured_attr(GetTextColour(), bgColourSecondary, GetFont());
|
||||||
return item % 2 == 0 ? nullptr : &s_coloured_attr;
|
return item % 2 == 0 ? nullptr : &s_coloured_attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue