Make new lib tree highlighting dark-mode compatible

This commit is contained in:
Jon Evans 2023-11-21 17:31:23 -05:00
parent e4b7170a92
commit 2604854221
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include <eda_base_frame.h>
#include <eda_pattern_match.h>
#include <kiface_base.h>
#include <kiplatform/ui.h>
#include <lib_tree_model_adapter.h>
#include <project/project_file.h>
#include <settings/app_settings.h>
@ -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 );
}