45 int pos =
m_themes->Append( settings->GetName(),
static_cast<void*
>( settings ) );
47 if( settings == current )
50 m_themes->GetTextExtent( settings->GetName(), &width, &height );
51 minwidth = std::max( minwidth, width );
54 m_themes->SetMinSize( wxSize( minwidth + 50, -1 ) );
81 m_themes->SetStringSelection(
_(
"KiCad Default" ) );
wxString m_ColorTheme
Active color theme name.
Color settings are a bit different than most of the settings objects in that there can be more than o...
wxString GetFilename() const
PANEL_PL_EDITOR_COLOR_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
bool TransferDataFromWindow() override
PANEL_PL_EDITOR_COLOR_SETTINGS(wxWindow *aParent)
void ResetPanel() override
Reset the contents of this panel.
bool TransferDataToWindow() override
SETTINGS_MANAGER * GetSettingsManager()
PGM_BASE & Pgm()
The global program "get" accessor.
COLOR_SETTINGS * GetColorSettings(const wxString &aName)
T * GetAppSettings(const char *aFilename)