Skip to content

Commit

Permalink
[mirotalksfu] - add blue theme
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 5, 2023
1 parent a9cf10e commit d011689
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -2312,6 +2312,18 @@ function setTheme(theme) {
document.body.style.background = 'radial-gradient(#003934, #001E1A)';
selectTheme.selectedIndex = 2;
break;
case 'blue':
swalBackground = 'radial-gradient(#306bac, #141B41)';
document.documentElement.style.setProperty('--body-bg', 'radial-gradient(#306bac, #141B41)');
document.documentElement.style.setProperty('--msger-bg', 'radial-gradient(#306bac, #141B41)');
document.documentElement.style.setProperty('--left-msg-bg', '#306bac');
document.documentElement.style.setProperty('--right-msg-bg', '#141B41');
document.documentElement.style.setProperty('--settings-bg', 'radial-gradient(#306bac, #141B41)');
document.documentElement.style.setProperty('--wb-bg', 'radial-gradient(#306bac, #141B41)');
document.documentElement.style.setProperty('--btns-bg-color', '#141B41');
document.body.style.background = 'radial-gradient(#306bac, #141B41)';
selectTheme.selectedIndex = 3;
break;
//...
}
lsSettings.theme = theme;
Expand Down
1 change: 1 addition & 0 deletions public/views/Room.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ <h1>Loading</h1>
<option value="dark">⚫ &nbsp;Dark</option>
<option value="grey">⚪ &nbsp;Grey</option>
<option value="green">🟢 &nbsp;Green</option>
<option value="blue">🔵 &nbsp;Blue</option>
</select>
<br />
<p>Buttons bar:</p>
Expand Down

0 comments on commit d011689

Please sign in to comment.