1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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:
Hugo Locurcio
2019-07-08 20:03:06 +02:00
parent 56269e2db8
commit 28d3a6051c
10 changed files with 177 additions and 177 deletions

View File

@@ -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;