|
|
@@ -1,6 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Diagnostics; |
|
|
|
#if NETSTANDARD2 |
|
|
|
#if NETSTANDARD2_0 || NET45 |
|
|
|
using StandardColor = System.Drawing.Color; |
|
|
|
#endif |
|
|
|
|
|
|
@@ -100,7 +100,7 @@ namespace Discord |
|
|
|
(uint)(b * 255.0f); |
|
|
|
} |
|
|
|
|
|
|
|
#if NETSTANDARD2 |
|
|
|
#if NETSTANDARD2_0 || NET45 |
|
|
|
public static implicit operator StandardColor(Color color) => |
|
|
|
StandardColor.FromArgb((int)color.RawValue); |
|
|
|
public static explicit operator Color(StandardColor color) => |
|
|
|