41 _HKI(
"HAL lead-free" ),
43 _HKI(
"Immersion tin" ),
44 _HKI(
"Immersion nickel" ),
45 _HKI(
"Immersion silver" ),
46 _HKI(
"Immersion gold" ),
50 _HKI(
"User defined" )
62 {
_HKI(
"Green" ), wxColor( 60, 150, 80 ) },
63 {
_HKI(
"Red" ), wxColor( 128, 0, 0 ) },
64 {
_HKI(
"Blue" ), wxColor( 0, 0, 128 ) },
65 {
_HKI(
"Purple" ), wxColor( 80, 0, 80 ) },
66 {
_HKI(
"Black" ), wxColor( 20, 20, 20 ) },
67 {
_HKI(
"White" ), wxColor( 200, 200, 200 ) },
68 {
_HKI(
"Yellow" ), wxColor( 128, 128, 0 ) },
69 {
_HKI(
"User defined" ), wxColor( 128, 128, 128 ) }
78 {
_HKI(
"FR4 natural" ), wxColor( 109, 116, 75, 212 ) },
79 {
_HKI(
"PTFE natural" ), wxColor( 252, 252, 250, 230 ) },
80 {
_HKI(
"Polyimide" ), wxColor( 205, 130, 0, 170 ) },
81 {
_HKI(
"Phenolic natural" ), wxColor( 92, 17, 6, 230 ) },
82 {
_HKI(
"Aluminum" ), wxColor( 213, 213, 213, 255 ) },
83 {
_HKI(
"User defined" ), wxColor( 128, 128, 128, 212 ) }
97std::vector<FAB_LAYER_COLOR>
dummy;
105 default:
return dummy;
119 static std::vector<wxString> list =
121 wxT(
"Green" ), wxT(
"Red" ), wxT(
"Blue" ),
122 wxT(
"Black" ), wxT(
"White" ), wxT(
"Yellow" )
125 for( wxString& candidate : list )
127 if( candidate.CmpNoCase( aName ) == 0 )
140 return wxString::Format( wxT(
"R%dG%dB%d" ),
constexpr std::size_t arrayDim(T const (&)[N]) noexcept
Returns # of elements in an array.
@ BS_ITEM_TYPE_SILKSCREEN
@ BS_ITEM_TYPE_DIELECTRIC
@ BS_ITEM_TYPE_SOLDERMASK
const wxString GetColorAsString() const
Some functions to handle hotkeys in KiCad.
std::vector< FAB_LAYER_COLOR > dummy
static std::vector< FAB_LAYER_COLOR > dielectricColors
static std::vector< FAB_LAYER_COLOR > gbrjobColors
const std::vector< FAB_LAYER_COLOR > & GetStandardColors(BOARD_STACKUP_ITEM_TYPE aType)
int GetColorUserDefinedListIdx(BOARD_STACKUP_ITEM_TYPE aType)
bool IsColorNameNormalized(const wxString &aName)
wxArrayString GetStandardCopperFinishes(bool aTranslate)
static wxString copperFinishType[]
wxString NotSpecifiedPrm()
bool IsColorNameNormalized(const wxString &aName)