48 COLOR_SETTINGS* current =
Pgm().GetSettingsManager().GetColorSettings( cfg->m_ColorTheme );
58 int pos =
m_themeSelection->Append( settings->GetName(), static_cast<void*>( settings ) );
60 if( settings == current )
64 minwidth = std::max( minwidth, width );
82 auto selected = static_cast<COLOR_SETTINGS*>(
KIGFX::SCH_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
wxChoice * m_themeSelection
SYMBOL_EDIT_FRAME * m_frame
void OnUseEeschemaThemeChanged(wxCommandEvent &event) override
bool TransferDataToWindow() override
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
Class PANEL_SYM_COLOR_SETTINGS_BASE.
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
AppSettings * GetAppSettings(bool aLoadNow=true)
Returns a handle to the a given settings by type If the settings have already been loaded,...
wxCheckBox * m_useEeschemaTheme
SETTINGS_MANAGER * GetSettingsManager()
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
Color settings are a bit different than most of the settings objects in that there can be more than o...
bool m_UseEeschemaColorSettings
bool TransferDataFromWindow() override
virtual void LoadColors(const COLOR_SETTINGS *aSettings)
PANEL_SYM_COLOR_SETTINGS(SYMBOL_EDIT_FRAME *aFrame, wxWindow *aWindow)
wxStaticText * m_txtTheme
wxString m_ColorTheme
Active color theme name.
The symbol library editor main window.