KiCad PCB EDA Suite
Loading...
Searching...
No Matches
builtin_color_themes.h File Reference

Go to the source code of this file.

Macros

#define CSS_COLOR(r, g, b, a)
 

Variables

static const std::map< int, COLOR4Ds_defaultTheme
 
static const std::vector< COLOR4Ds_copperColors
 
static const std::vector< COLOR4Ds_userColors
 
static const std::map< int, COLOR4Ds_classicTheme
 

Macro Definition Documentation

◆ CSS_COLOR

#define CSS_COLOR ( r,
g,
b,
a )
Value:
COLOR4D().FromCSSRGBA( r, g, b, a )
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:104
COLOR4D & FromCSSRGBA(int aRed, int aGreen, int aBlue, double aAlpha=1.0)
Initialize the color from a RGBA value with 0-255 red/green/blue and 0-1 alpha.
Definition color4d.cpp:577

Definition at line 26 of file builtin_color_themes.h.

Variable Documentation

◆ s_classicTheme

const std::map<int, COLOR4D> s_classicTheme
static

Definition at line 309 of file builtin_color_themes.h.

Referenced by COLOR_SETTINGS::CreateBuiltinColorSettings().

◆ s_copperColors

const std::vector<COLOR4D> s_copperColors
static
Initial value:
=
{
{ CSS_COLOR( 237, 124, 51, 1 ) },
{ CSS_COLOR( 91, 195, 235, 1 ) },
{ CSS_COLOR( 247, 111, 142, 1 ) },
{ CSS_COLOR( 167, 165, 198, 1 ) },
{ CSS_COLOR( 40, 204, 217, 1 ) },
{ CSS_COLOR( 232, 178, 167, 1 ) },
{ CSS_COLOR( 242, 237, 161, 1 ) }
}
#define CSS_COLOR(r, g, b, a)

Definition at line 289 of file builtin_color_themes.h.

Referenced by COLOR_SETTINGS::GetDefaultColor().

◆ s_defaultTheme

const std::map<int, COLOR4D> s_defaultTheme
static

Definition at line 28 of file builtin_color_themes.h.

Referenced by COLOR_SETTINGS::COLOR_SETTINGS().

◆ s_userColors

const std::vector<COLOR4D> s_userColors
static
Initial value:
=
{
{ CSS_COLOR( 89, 148, 220, 1 ) },
{ CSS_COLOR( 180, 219, 210, 1 ) },
{ CSS_COLOR( 216, 200, 82, 1 ) },
{ CSS_COLOR( 194, 194, 194, 1 ) },
}

Definition at line 301 of file builtin_color_themes.h.

Referenced by COLOR_SETTINGS::GetDefaultColor().