From 2694be739eae47c625bf7358a54440d98a5b5edb Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Tue, 15 Jul 2025 17:47:50 +0200 Subject: [PATCH] UI: Improve Download Manager's dark mode support --- src/gui/wxgui/components/wxDownloadManagerList.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/wxgui/components/wxDownloadManagerList.cpp b/src/gui/wxgui/components/wxDownloadManagerList.cpp index cfc3c52d..b1bf427a 100644 --- a/src/gui/wxgui/components/wxDownloadManagerList.cpp +++ b/src/gui/wxgui/components/wxDownloadManagerList.cpp @@ -6,7 +6,6 @@ #include "wxgui/components/wxGameList.h" #include "wxgui/helpers/wxCustomEvents.h" -#include #include #include #include @@ -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; }