Detect dark mode in symbol problem highlight in cvpcb
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13068
This commit is contained in:
parent
6b70c679cf
commit
e97bdeda47
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <trace_helpers.h>
|
||||
|
||||
#include <kiplatform/ui.h>
|
||||
#include <cvpcb_mainframe.h>
|
||||
#include <listboxes.h>
|
||||
#include <cvpcb_id.h>
|
||||
|
@ -37,14 +38,16 @@ SYMBOLS_LISTBOX::SYMBOLS_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id ) :
|
|||
ITEMS_LISTBOX_BASE( parent, id ),
|
||||
m_warningAttr( std::make_unique<wxListItemAttr>() )
|
||||
{
|
||||
m_warningAttr->SetBackgroundColour( *wxYELLOW );
|
||||
m_warningAttr->SetBackgroundColour( KIPLATFORM::UI::IsDarkTheme()
|
||||
? wxColour( 112, 96, 32 )
|
||||
: *wxYELLOW );
|
||||
}
|
||||
|
||||
|
||||
SYMBOLS_LISTBOX::~SYMBOLS_LISTBOX()
|
||||
{
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
BEGIN_EVENT_TABLE( SYMBOLS_LISTBOX, ITEMS_LISTBOX_BASE )
|
||||
EVT_CHAR( SYMBOLS_LISTBOX::OnChar )
|
||||
|
|
Loading…
Reference in New Issue