Refactor Color.FromRGBA and add matching old logic Color.FromARGB
2592
This commit is contained in:
@@ -23,11 +23,14 @@ namespace FlaxEngine
|
||||
public int FontSize;
|
||||
|
||||
/// <summary>
|
||||
/// The custom header color (as 32-bit uint).
|
||||
/// The custom header color (as 32-bit uint in RGB order, bottom bits contain Blue).
|
||||
/// </summary>
|
||||
public uint Color;
|
||||
|
||||
private HeaderAttribute()
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HeaderAttribute"/> class.
|
||||
/// </summary>
|
||||
public HeaderAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace FlaxEngine;
|
||||
|
||||
@@ -15,7 +15,7 @@ public class WatermarkAttribute : Attribute
|
||||
public string WatermarkText;
|
||||
|
||||
/// <summary>
|
||||
/// The watermark color.
|
||||
/// The watermark color (as 32-bit uint in RGB order, bottom bits contain Blue).
|
||||
/// </summary>
|
||||
public uint WatermarkColor;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class WatermarkAttribute : Attribute
|
||||
public WatermarkAttribute(string text)
|
||||
{
|
||||
WatermarkText = text;
|
||||
WatermarkColor = 0; // default color of watermark in textbox
|
||||
WatermarkColor = 0; // Default color of watermark in textbox
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user