mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-10 20:46:24 +00:00
Added own color-type to have more control over and easier manipulation of collors
This commit is contained in:
1 parent
5c6dba769b
commit
381ec55349
29 files changed
+271
-93
No files matched your search
@@ -4,6 +4,7 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using CUE.NET.Brushes;
|
||||
using CUE.NET.Devices.Generic;
|
||||
using CUE.NET.Devices.Generic.Enums;
|
||||
|
||||
namespace CUE.NET.Profiles
|
||||
@@ -20,7 +21,7 @@ namespace CUE.NET.Profiles
|
||||
/// </summary>
|
||||
internal string Name { get; }
|
||||
|
||||
private Dictionary<CorsairLedId, Color> _colors;
|
||||
private Dictionary<CorsairLedId, CorsairColor> _colors;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -72,7 +73,7 @@ namespace CUE.NET.Profiles
|
||||
return new
|
||||
{
|
||||
key = (CorsairLedId)Enum.Parse(typeof(CorsairLedId), name),
|
||||
color = ColorTranslator.FromHtml(x.Attribute("color").Value)
|
||||
color = (CorsairColor)ColorTranslator.FromHtml(x.Attribute("color").Value)
|
||||
};
|
||||
})
|
||||
.ToDictionary(x => x.key, x => x.color)
|
||||
|
||||
Reference in new issue
Block a user