fix reading accent color in settings

This commit is contained in:
Til Schmitter 2026-06-20 20:43:41 +02:00
parent 37f393d8e4
commit d064ba930d
2 changed files with 3 additions and 2 deletions

View file

@ -1501,6 +1501,9 @@ ebi('accent').oninput = ebi('accent_picker').oninput = function () {
setColor(validcolor); setColor(validcolor);
}, 100); }, 100);
} }
if(accent && accent.length > 3){
ebi('accent').value = ebi('accent_picker').value = accent;
}
// corner radius // corner radius
ebi('radius').oninput = function () { ebi('radius').oninput = function () {

View file

@ -2372,8 +2372,6 @@ var thing = QS('meta[name=theme-color]');
if(accent && accent.length > 3){ if(accent && accent.length > 3){
console.log('read accent color from settings: ' + accent); console.log('read accent color from settings: ' + accent);
document.documentElement.style.setProperty('--a', parseColor(accent)); document.documentElement.style.setProperty('--a', parseColor(accent));
if(ebi('accent'))
ebi('accent').value = ebi('accent_picker').value = accent;
} }
function bchrome() { function bchrome() {