diff --git a/src/components/chat/chat.ts b/src/components/chat/chat.ts index 2c45d164..77a97961 100644 --- a/src/components/chat/chat.ts +++ b/src/components/chat/chat.ts @@ -86,6 +86,12 @@ export default class Chat extends EventListenerBase<{ const item = document.createElement('div'); item.classList.add('chat-background-item'); + const theme = rootScope.settings.themes.find(t => t.name === rootScope.settings.theme); + if(theme.background.type === 'color') { + item.style.backgroundColor = theme.background.color; + item.style.backgroundImage = 'none'; + } + return new Promise((resolve) => { const cb = () => { const prev = this.backgroundEl.children[this.backgroundEl.childElementCount - 1] as HTMLElement; diff --git a/src/index.hbs b/src/index.hbs index 52140c85..2e33005f 100644 --- a/src/index.hbs +++ b/src/index.hbs @@ -74,6 +74,8 @@