Added ultrachromic and new color picked mode

This commit is contained in:
Daniel
2022-06-14 17:56:25 +02:00
parent a970349a1f
commit 84c4462648
3 changed files with 780 additions and 476 deletions

View File

@@ -433,7 +433,19 @@
for (var i = 0; i < inputs.length; i++) {
var element = inputs[i]
var values = $("#" + element.name).spectrum("get")
var color = "rgba(" + values._r + "," + values._g + "," + values._b + "," + values._a + ")"
var mode = element.getAttribute("data-mode");
var color = "";
switch (mode) {
case "hex":
color = "#" + values.toHex();
break;
case "only_numbers":
color = values._r + "," + values._g + "," + values._b ;
break;
default:
color = "rgba(" + values._r + "," + values._g + "," + values._b + "," + values._a + ")";
break;
}
css += element.getAttribute("data-css").replaceAll("$", color) + "\n";
}

View File

@@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<IsPackable>true</IsPackable>
<AssemblyVersion>1.5.0</AssemblyVersion>
<FileVersion>1.5.0</FileVersion>
<AssemblyVersion>2.0.1</AssemblyVersion>
<FileVersion>2.0.1</FileVersion>
<Authors />
<Company />
</PropertyGroup>

File diff suppressed because it is too large Load Diff