mirror of
https://github.com/9001/copyparty.git
synced 2026-06-22 05:53:29 -06:00
use tcolor as default accent
This commit is contained in:
parent
cf650af42e
commit
04151dc7c9
|
|
@ -296,6 +296,7 @@
|
|||
CGV = {{ cgv|tojson }},
|
||||
TS = "{{ ts }}",
|
||||
dtheme = "{{ dtheme }}",
|
||||
tcolor = "#{{ tcolor }}"
|
||||
lang = "{{ lang }}",
|
||||
dfavico = "{{ favico }}",
|
||||
have_tags_idx = {{ have_tags_idx }},
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue