mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
meta-theme color matches UI Background
This commit is contained in:
@ -1124,7 +1124,9 @@ function applyThemeColor(type) {
|
|||||||
document.documentElement.style.setProperty('--SmartThemeFastUIBGColor', power_user.fastui_bg_color);
|
document.documentElement.style.setProperty('--SmartThemeFastUIBGColor', power_user.fastui_bg_color);
|
||||||
} */
|
} */
|
||||||
if (type === 'blurTint') {
|
if (type === 'blurTint') {
|
||||||
|
let metaThemeColor = document.querySelector('meta[name=theme-color]');
|
||||||
document.documentElement.style.setProperty('--SmartThemeBlurTintColor', power_user.blur_tint_color);
|
document.documentElement.style.setProperty('--SmartThemeBlurTintColor', power_user.blur_tint_color);
|
||||||
|
metaThemeColor.setAttribute('content', power_user.blur_tint_color);
|
||||||
}
|
}
|
||||||
if (type === 'chatTint') {
|
if (type === 'chatTint') {
|
||||||
document.documentElement.style.setProperty('--SmartThemeChatTintColor', power_user.chat_tint_color);
|
document.documentElement.style.setProperty('--SmartThemeChatTintColor', power_user.chat_tint_color);
|
||||||
|
Reference in New Issue
Block a user