From 0e8bf25559974a4e2b0bfcf555bb104c32404479 Mon Sep 17 00:00:00 2001 From: Mister Rajoy Date: Sat, 6 Feb 2021 22:43:55 +0100 Subject: [PATCH 1/4] Fix no cors error --- .../Configuration/configurationpage.html | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html index d1c4be9..559265b 100644 --- a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html +++ b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html @@ -477,21 +477,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; } @@ -674,7 +667,7 @@ ''; html += loadPreviews(skin); html += ""; - $("#options").html(html).trigger("create").then(updateBlurSliders()); + $("#options").html(html).trigger("create"); From d1e0a7ab354d30efd722275d86421a21a520e112 Mon Sep 17 00:00:00 2001 From: Mister Rajoy Date: Wed, 10 Feb 2021 00:29:30 +0100 Subject: [PATCH 2/4] Add Novachromic skin --- skins-3.0.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/skins-3.0.json b/skins-3.0.json index 34aaf99..01e6571 100644 --- a/skins-3.0.json +++ b/skins-3.0.json @@ -179,6 +179,58 @@ } ] }, + { + "name": "Novachromic", + "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": "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": [ + { + "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": "#6279cd" + } + ] + } + ] + }, { "name": "JellySkin", "author": "prayagprajapati17", From cc5ccb41a09a77e6b80402c7b0cd355060c6db41 Mon Sep 17 00:00:00 2001 From: Mister Rajoy Date: Wed, 10 Feb 2021 00:34:49 +0100 Subject: [PATCH 3/4] Change default color of Novachromic --- skins-3.0.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins-3.0.json b/skins-3.0.json index 01e6571..bfc317d 100644 --- a/skins-3.0.json +++ b/skins-3.0.json @@ -225,7 +225,7 @@ "name": "Accent color", "description": "Choose a custom accent color to use with the theme.", "css": ":root {--accent: $;}", - "default": "#6279cd" + "default": "#ffffff" } ] } From f546a35c80603a8f5503db049d1a7abe553495b6 Mon Sep 17 00:00:00 2001 From: Mister Rajoy Date: Thu, 11 Feb 2021 00:24:32 +0100 Subject: [PATCH 4/4] Add Novachromic for older versions --- skins-2.0.json | 11 +++++++++++ 1 file changed, 11 insertions(+) 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",