Skip to content

Commit

Permalink
💄 grey bg color for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Jan 18, 2024
1 parent 5ded577 commit 26fbf8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/overlay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { twitchClient } from "./twitch.js";
if (!hs.hasOwnProperty("oauth") && !hs.hasOwnProperty("demo"))
window.location = constants.OAUTH_URL;

if (hs.hasOwnProperty("demo")) document.body.classList.add("demo");

const options = {
height: constants.SCREEN_HEIGHT,
physics: {
Expand All @@ -20,7 +22,7 @@ const options = {
},
pixelArt: true,
render: {
transparent: hs.hasOwnProperty("demo") ? false : true,
transparent: true,
},
scene: DirectorScene,
type: Phaser.AUTO,
Expand Down
4 changes: 4 additions & 0 deletions html/overlay/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ body {
width: 100%;
}

body.demo {
background-color: #777;
}

* {
image-rendering: pixelated !important;
image-rendering: crisp-edges !important;
Expand Down

0 comments on commit 26fbf8c

Please sign in to comment.