mirror of
https://github.com/9001/copyparty.git
synced 2026-06-22 05:53:29 -06:00
fix reading accent color in settings
This commit is contained in:
parent
37f393d8e4
commit
d064ba930d
|
|
@ -1501,6 +1501,9 @@ ebi('accent').oninput = ebi('accent_picker').oninput = function () {
|
|||
setColor(validcolor);
|
||||
}, 100);
|
||||
}
|
||||
if(accent && accent.length > 3){
|
||||
ebi('accent').value = ebi('accent_picker').value = accent;
|
||||
}
|
||||
|
||||
// corner radius
|
||||
ebi('radius').oninput = function () {
|
||||
|
|
|
|||
|
|
@ -2372,8 +2372,6 @@ var thing = QS('meta[name=theme-color]');
|
|||
if(accent && accent.length > 3){
|
||||
console.log('read accent color from settings: ' + accent);
|
||||
document.documentElement.style.setProperty('--a', parseColor(accent));
|
||||
if(ebi('accent'))
|
||||
ebi('accent').value = ebi('accent_picker').value = accent;
|
||||
}
|
||||
|
||||
function bchrome() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue