Skip to content

Commit 21b62db

Browse files
authored
Use a consistent background colour for video tiles and avatars (#2868)
1 parent d09efa3 commit 21b62db

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ layer(compound);
4747
--background-gradient: url("graphics/backgroundGradient.svg");
4848
}
4949

50+
:root,
51+
[class*="cpd-theme-"] {
52+
--video-tile-background: var(--cpd-color-bg-subtle-secondary);
53+
}
54+
5055
.cpd-theme-dark {
5156
--cpd-color-border-accent: var(--cpd-color-green-1100);
5257
--stopgap-color-on-solid-accent: var(--cpd-color-text-primary);

src/room/VideoPreview.module.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ Please see LICENSE in the repository root for full details.
1818
width: 100%;
1919
height: 100%;
2020
object-fit: cover;
21-
background-color: black;
22-
background-color: var(--cpd-color-bg-subtle-primary);
21+
background-color: var(--video-tile-background);
2322
}
2423

2524
video.mirror {
@@ -35,7 +34,7 @@ video.mirror {
3534
display: flex;
3635
justify-content: center;
3736
align-items: center;
38-
background-color: var(--cpd-color-bg-subtle-secondary);
37+
background-color: var(--video-tile-background);
3938
}
4039

4140
.buttonBar {

src/tile/MediaView.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Please see LICENSE in the repository root for full details.
1515
inline-size: 100%;
1616
block-size: 100%;
1717
object-fit: contain;
18-
background-color: var(--cpd-color-bg-subtle-primary);
18+
background-color: var(--video-tile-background);
1919
/* This transform is a no-op, but it forces Firefox to use a different
2020
rendering path, one that actually clips the corners of <video> elements into
2121
the intended rounded shape. We can remove this if Firefox stops being broken. */
@@ -35,7 +35,7 @@ Please see LICENSE in the repository root for full details.
3535
}
3636

3737
.bg {
38-
background-color: var(--cpd-color-bg-subtle-secondary);
38+
background-color: var(--video-tile-background);
3939
inline-size: 100%;
4040
block-size: 100%;
4141
border-radius: inherit;

0 commit comments

Comments
 (0)