diff --git a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html index 7b650e2..074fd6f 100644 --- a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html +++ b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html @@ -453,21 +453,14 @@ //procces google Fonts - if(document.getElementById("font-picker") != undefined){ + if(document.getElementById("font-picker") != undefined && document.getElementById("font-picker").value != "" ){ var font = document.getElementById("font-picker").value var url = "https://fonts.googleapis.com/css?family=" + font; - var promise = await fetch(url); + var promise = await fetch(url,{mode: 'no-cors'}); css += await promise.text(); css += "html {font-family: '$',sans-serif ; } body,h1,h2,h3 { font-family: '$' ,sans-serif;}".replaceAll("$",font.replaceAll("+"," ")); return css; - // fetch(url).then(function (response) { - // response.text().then(function (text) { - // css += text; - // return css; - // }); - // }); - }else{ return css; } @@ -650,9 +643,9 @@ ''; html += loadPreviews(skin); html += ""; - $("#options").html(html).trigger("create").then(updateBlurSliders()); - + $("#options").html(html).trigger("create"); + } diff --git a/skins-2.0.json b/skins-2.0.json index e7a7c8f..93d9573 100644 --- a/skins-2.0.json +++ b/skins-2.0.json @@ -83,6 +83,17 @@ } ] }, + { + "name": "Novachromic", + "author": "EdgeMentality", + "versions":[ + { + "name": "Default", + "description": "Novachromic is essentially Monochromic, but with another layer of overrides on top.", + "css" : "@import url('https://ctalvio.github.io/Novachromic/default_style.css');" + } + ] + }, { "name": "JellySkin", "author": "prayagprajapati17", diff --git a/skins-3.0.json b/skins-3.0.json index b84af47..ab0b66d 100644 --- a/skins-3.0.json +++ b/skins-3.0.json @@ -181,31 +181,53 @@ }, { "name": "Novachromic", - "author": "Casper Talvio", - "description": "Casper's theme for Jellyfin media server, part of the 'chromic' family",' + "author": "EdgeMentality", + "description": "Novachromic is essentially Monochromic, but with another layer of overrides on top.", "defaultCss": "@import url('https://ctalvio.github.io/Novachromic/default_style.css');", - "previews":[ - { - "name": "Login Page", - "url": "" - }, - { - "name": "Home/Index Page", - "url": "https://github.com/CTalvio/Novachromic/blob/main/screenshots/one.png?raw=true" - }, - { - "name": "Library Page", - "url": "https://github.com/CTalvio/Novachromic/blob/main/screenshots/six.png?raw=true" - }, - { - "name": "Title page", - "url": "https://github.com/CTalvio/Novachromic/blob/main/screenshots/three.png?raw=true" - } + "previews": [ + + { + "name": "Home/Index Page", + "url": "https://github.com/CTalvio/Novachromic/raw/main/screenshots/one.png" + }, + { + "name": "Library Page", + "url": "https://github.com/CTalvio/Novachromic/raw/main/screenshots/six.png" + }, + { + "name": "Title page", + "url": "https://github.com/CTalvio/Novachromic/raw/main/screenshots/four.png" + }, + { + "name": "Dashboard page", + "url": "https://github.com/CTalvio/Novachromic/raw/main/screenshots/two.png" + } ], "categories": [ { "name": "Default", - "options": [] + "options": [ + { + "type": "checkBox", + "name": "Restore bottom bar style episode progress", + "description": "Don't like my transparent view progress overlay? Use this to go back to the old style.", + "css": "@import url('https://ctalvio.github.io/Monochromic/bottom-progress_style.css');" + }, + { + "type": "number", + "name": "Modify rounding", + "description": "Amount of rounding. Zero is none.", + "css": ":root {--rounding: $px;}", + "default": "12" + }, + { + "type": "colorPicker", + "name": "Accent color", + "description": "Choose a custom accent color to use with the theme.", + "css": ":root {--accent: $;}", + "default": "#ffffff" + } + ] } ] },