Renaming Luminance name to Brightness
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user