mirror of
https://github.com/danieladov/jellyfin-plugin-skin-manager.git
synced 2026-01-18 16:37:31 +01:00
Added ultrachromic and new color picked mode
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
1238
skins-3.0.json
1238
skins-3.0.json
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user