21 #ifndef PANEL_COLOR_SETTINGS_H 22 #define PANEL_COLOR_SETTINGS_H 50 return _(
"Reset all colors in this theme to the KiCad defaults" );
53 bool Show(
bool show )
override;
virtual bool saveCurrentTheme(bool aValidate)
virtual void ResetPanel() override
Reset the contents of this panel.
std::map< int, wxStaticText * > m_labels
virtual void onNewThemeSelected()
Event fired when a new theme is selected that can be overridden in children.
std::map< int, COLOR_SWATCH * > m_swatches
void updateColor(int aLayer, const KIGFX::COLOR4D &aColor)
void ShowColorContextMenu(wxMouseEvent &aEvent, int aLayer)
std::string m_colorNamespace
A namespace that will be passed to SETTINGS_MANAGER::SaveColorSettings.
Class PANEL_COLOR_SETTINGS_BASE.
bool Show(bool show) override
void createThemeList(const wxString &aCurrent)
Builds the theme listbox and sets the selection to the current theme.
COLOR_SETTINGS * m_currentSettings
virtual void onColorChanged()
Event fired when the user changes any color.
PANEL_COLOR_SETTINGS(wxWindow *aParent)
std::vector< int > m_validLayers
A list of layer IDs that are valid for the current color settings dialog.
virtual wxString GetResetTooltip() override
Get the tooltip the reset button should display when showing this panel.
void OnBtnOpenThemeFolderClicked(wxCommandEvent &event) override
~PANEL_COLOR_SETTINGS()=default
void OnLeftDownTheme(wxMouseEvent &event) override
A simple color swatch of the kind used to set layer colors.
Color settings are a bit different than most of the settings objects in that there can be more than o...
void createSwatch(int aLayer, const wxString &aName)
void OnThemeChanged(wxCommandEvent &aEvent) override
virtual bool validateSave(bool aQuiet=false)
Performs a pre-save validation of the current color theme.
void OnColorChanged(wxCommandEvent &aEvent)
A color representation with 4 components: red, green, blue, alpha.