Fix colors in old fullpage mode (#139)

This commit is contained in:
John Livingston
2024-05-21 15:22:09 +02:00
parent 8518292900
commit 5f4ac233af
3 changed files with 13 additions and 4 deletions

View File

@ -103,9 +103,10 @@ async function initWebchatRouter (options: RegisterServerOptionsV5): Promise<Rou
} else {
const autoColorsTest = areAutoColorsValid(autocolors)
if (autoColorsTest === true) {
// Note: we use body.converse-fullscreen.theme-peertube to be more specific than code in _variable.scss.
autocolorsStyles = `
<style>
:root {
body.converse-fullscreen.theme-peertube {
--peertube-main-foreground: ${autocolors.mainForeground};
--peertube-main-background: ${autocolors.mainBackground};
--peertube-grey-foreground: ${autocolors.greyForeground};