Refactor Color.FromRGBA and add matching old logic Color.FromARGB

2592
This commit is contained in:
Wojtek Figat
2024-05-16 13:45:29 +02:00
parent 3404643636
commit 2529312152
9 changed files with 133 additions and 51 deletions

View File

@@ -318,7 +318,7 @@ namespace FlaxEditor.CustomEditors
if (header.FontSize > 0)
element.Label.Font = new FontReference(element.Label.Font.Font, header.FontSize);
if (header.Color > 0)
element.Label.TextColor = Color.FromRGBA(header.Color);
element.Label.TextColor = Color.FromRGB(header.Color);
return element;
}