Use base Color() constructors instead of Color::html()
This results in slightly smaller binaries (-17 KB for an editor binary) as no strings need to be allocated.
This commit is contained in:
parent
56269e2db8
commit
28d3a6051c
10 changed files with 177 additions and 177 deletions
|
|
@ -365,10 +365,10 @@ void VisualShaderEditor::_update_graph() {
|
|||
}
|
||||
|
||||
static const Color type_color[4] = {
|
||||
Color::html("#61daf4"), // scalar
|
||||
Color::html("#d67dee"), // vector
|
||||
Color::html("#8da6f0"), // boolean
|
||||
Color::html("#f6a86e") // transform
|
||||
Color(0.38, 0.85, 0.96), // scalar
|
||||
Color(0.84, 0.49, 0.93), // vector
|
||||
Color(0.55, 0.65, 0.94), // boolean
|
||||
Color(0.96, 0.66, 0.43) // transform
|
||||
};
|
||||
|
||||
List<VisualShader::Connection> connections;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue