Dark theme support for SPICE model editor

This commit is contained in:
Mikolaj Wielgus 2021-12-03 03:41:02 +01:00
parent cec258f7dd
commit 9efbeaa064
4 changed files with 13 additions and 7 deletions

View File

@ -230,6 +230,8 @@ void DIALOG_SPICE_MODEL::Init()
// wxPanel::Hide() isn't enough on some platforms
m_powerNotebook->RemovePage( m_powerNotebook->FindPage( m_pwrTransNoise ) );
m_powerNotebook->RemovePage( m_powerNotebook->FindPage( m_pwrExtData ) );
m_scintillaTricks = std::make_unique<SCINTILLA_TRICKS>( m_libraryContents, wxT( "{}" ), false );
}

View File

@ -27,8 +27,9 @@
#ifndef DIALOG_SPICE_MODEL_H
#define DIALOG_SPICE_MODEL_H
#include "dialog_spice_model_base.h"
#include "netlist_exporter_pspice.h"
#include <dialog_spice_model_base.h>
#include <netlist_exporter_pspice.h>
#include <scintilla_tricks.h>
#include <sim/spice_value.h>
#include <sch_symbol.h>
@ -167,6 +168,8 @@ private:
SPICE_VALIDATOR m_spiceValidator;
SPICE_VALIDATOR m_spiceEmptyValidator;
wxTextValidator m_notEmptyValidator;
std::unique_ptr<SCINTILLA_TRICKS> m_scintillaTricks;
};
#endif /* DIALOG_SPICE_MODEL_H */

View File

@ -29,7 +29,8 @@
#include <functional>
/**
* Add cut/copy/paste, autocomplete and brace highlighting to a wxStyleTextCtrl instance.
* Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl
* instance.
*/
class SCINTILLA_TRICKS : public wxEvtHandler
{