mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
no color changing console spam
This commit is contained in:
@ -151,22 +151,22 @@ async function applyThemeColor(type) {
|
|||||||
|
|
||||||
if (type === 'main') {
|
if (type === 'main') {
|
||||||
document.documentElement.style.setProperty('--SmartThemeBodyColor', power_user.main_text_color);
|
document.documentElement.style.setProperty('--SmartThemeBodyColor', power_user.main_text_color);
|
||||||
console.log($MainTextColorPicker.color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'italics') {
|
if (type === 'italics') {
|
||||||
document.documentElement.style.setProperty('--SmartThemeEmColor', power_user.italics_text_color);
|
document.documentElement.style.setProperty('--SmartThemeEmColor', power_user.italics_text_color);
|
||||||
console.log($ItalicsTextColorPicker.color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'fastUIBG') {
|
if (type === 'fastUIBG') {
|
||||||
document.documentElement.style.setProperty('--SmartThemeFastUIBGColor', power_user.fastui_bg_color);
|
document.documentElement.style.setProperty('--SmartThemeFastUIBGColor', power_user.fastui_bg_color);
|
||||||
console.log($FastUIBGColorPicker.color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'blurTint') {
|
if (type === 'blurTint') {
|
||||||
document.documentElement.style.setProperty('--SmartThemeBlurTintColor', power_user.blur_tint_color);
|
document.documentElement.style.setProperty('--SmartThemeBlurTintColor', power_user.blur_tint_color);
|
||||||
console.log($BlurTintColorPicker.color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// a small delay to let the browser do the layout redraw
|
// a small delay to let the browser do the layout redraw
|
||||||
|
Reference in New Issue
Block a user