fixed #259
This commit is contained in:
1 parent
0b79d187ac
commit
99874a418f
16 files changed
+53
-17
No files matched your search
@@ -67,7 +67,7 @@ namespace HandyControl.Data
|
||||
/// <returns></returns>
|
||||
public Color GetColor(double range)
|
||||
{
|
||||
if (range < 0 || range > 1) return default(Color);
|
||||
if (range < 0 || range > 1) return default;
|
||||
return Color.FromArgb((byte)(_color1.A - _subColorArr[0] * range), (byte)(_color1.R - _subColorArr[1] * range),
|
||||
(byte)(_color1.G - _subColorArr[2] * range), (byte)(_color1.B - _subColorArr[3] * range));
|
||||
}
|
||||
|
||||
@@ -192,6 +192,8 @@
|
||||
|
||||
public const string Double2GridLengthConverter = nameof(Double2GridLengthConverter);
|
||||
|
||||
public const string DoubleMinConverter = nameof(DoubleMinConverter);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Effect
|
||||
|
||||
Reference in new issue
Block a user