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
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
3 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## ??? (Not Released Yet)
### Minor changes and fixes
* #139: Fix colors in old fullpage mode (used for OBS integration for example).
## 10.0.0
### New features

View File

@ -1,3 +1,8 @@
:root {
// we add --livechat-transparent variable, so that users can customize transparent background in OBS (for example).
--livechat-transparent: rgba(0 0 0 / 0%);
}
body.converse-fullscreen,
body.converse-embedded {
--peertube-main-foreground: #000;
@ -12,9 +17,6 @@ body.converse-embedded {
--peertube-button-background: #f2690d;
--peertube-link: #000;
--peertube-link-hover: #000;
// we add --livechat-transparent variable, so that users can customize transparent background in OBS (for example).
--livechat-transparent: rgba(0 0 0 / 0%);
}
.conversejs.theme-peertube,

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};