Renaming Luminance name to Brightness

This commit is contained in:
Phantom
2025-12-15 14:29:57 +01:00
parent 298ee284e1
commit 0094216ff8
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ namespace FlaxEngine
/// <summary>
/// Gets the brightness of the color
/// </summary>
public float Luminance => R * 0.299f + G * 0.587f + B * 0.114f;
public float Brightness => R * 0.299f + G * 0.587f + B * 0.114f;
/// <summary>
/// Returns the minimum color component value: Min(r,g,b).

View File

@@ -595,7 +595,7 @@ namespace FlaxEngine.GUI
Size = new Float2(size.X - margin, size.Y),
Font = Font,
TextColor = TextColor * 0.9f,
TextColorHighlighted = TextColorHighlighted.Luminance < 0.05f ? Color.Lerp(TextColorHighlighted, Color.White, 0.3f) : TextColorHighlighted,
TextColorHighlighted = TextColorHighlighted.Brightness < 0.05f ? Color.Lerp(TextColorHighlighted, Color.White, 0.3f) : TextColorHighlighted,
HorizontalAlignment = HorizontalAlignment,
VerticalAlignment = VerticalAlignment,
Text = _items[i],