From 2604854221677261ad115c5c0f00f3f10b9296ef Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 21 Nov 2023 17:31:23 -0500 Subject: [PATCH] Make new lib tree highlighting dark-mode compatible --- common/lib_tree_model_adapter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/lib_tree_model_adapter.cpp b/common/lib_tree_model_adapter.cpp index e7691ffc93..c35fc4a2f4 100644 --- a/common/lib_tree_model_adapter.cpp +++ b/common/lib_tree_model_adapter.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -85,6 +86,8 @@ public: points[3] = aRect.GetBottomRight() + wxPoint( -4, 1 ); points[4] = aRect.GetBottomLeft() + wxPoint( 0, 1 ); points[5] = aRect.GetTopLeft(); + + dc->SetPen( KIPLATFORM::UI::IsDarkTheme() ? *wxWHITE_PEN : *wxBLACK_PEN ); dc->DrawLines( 6, points ); }