Dark theme support for SPICE model editor
This commit is contained in:
parent
cec258f7dd
commit
9efbeaa064
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue