97 std::vector<GAL_LAYER_ID> galLayers;
106 std::sort( galLayers.begin(), galLayers.end(),
109 return LayerName( a ) < LayerName( b );
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...
COLOR4D GetColor(int aLayer) const
virtual bool Store()
Stores the current parameters into the JSON document represented by this object Note: this doesn't do...
wxString GetFilename() const
wxCheckBox * m_optOverrideColors
void createThemeList(const wxString &aCurrent)
Builds the theme listbox and sets the selection to the current theme.
void createSwatch(int aLayer, const wxString &aName)
std::vector< int > m_validLayers
A list of layer IDs that are valid for the current color settings dialog.
std::string m_colorNamespace
A namespace that will be passed to SETTINGS_MANAGER::SaveColorSettings.
COLOR_SETTINGS * m_currentSettings
bool TransferDataToWindow() override
PANEL_FP_EDITOR_COLOR_SETTINGS(wxWindow *aParent)
void createSwatches() override
bool TransferDataFromWindow() override
~PANEL_FP_EDITOR_COLOR_SETTINGS() override
virtual SETTINGS_MANAGER & GetSettingsManager() const
T * GetAppSettings()
Returns a handle to the a given settings by type If the settings have already been loaded,...
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
void SaveColorSettings(COLOR_SETTINGS *aSettings, const std::string &aNamespace="")
Safely saves a COLOR_SETTINGS to disk, preserving any changes outside the given namespace.
void ReloadColorSettings()
Re-scans the color themes directory, reloading any changes it finds.
wxString LayerName(int aLayer)
Returns the default display name for a given layer.
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
@ LAYER_PCB_BACKGROUND
PCB background color.
@ LAYER_PAD_PLATEDHOLES
to draw pad holes (plated)
@ LAYER_VIA_HOLES
to draw via holes (pad holes do not use this layer)
@ LAYER_VIAS
Meta control for all vias opacity/visibility.
PGM_BASE & Pgm()
The global Program "get" accessor.