From 04151dc7c9a2eff761502604efa721ff02902eaa Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sat, 20 Jun 2026 18:39:37 +0200 Subject: [PATCH] use tcolor as default accent --- copyparty/web/browser.html | 1 + copyparty/web/browser.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 9ce3aaeb..14792e08 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -296,6 +296,7 @@ CGV = {{ cgv|tojson }}, TS = "{{ ts }}", dtheme = "{{ dtheme }}", + tcolor = "#{{ tcolor }}" lang = "{{ lang }}", dfavico = "{{ favico }}", have_tags_idx = {{ have_tags_idx }}, diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 457f2b85..4a7e583b 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1517,6 +1517,8 @@ ebi('accent').oninput = ebi('accent_picker').oninput = function () { }, 100); } var accent = sread('accent'); +if(!accent || accent.length <= 3) + accent = window.tcolor; if(accent && accent.length > 3){ console.log('read accent color from settings: ' + accent); document.documentElement.style.setProperty('--a', parseColor(accent));