Skip to content

Commit 8e7a0eb

Browse files
Adapts video timeline to dark mode.
1 parent c550f04 commit 8e7a0eb

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

web/libs/editor/src/components/Timeline/Controls.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
height: 36px;
5353
color: var(--color-neutral-content);
5454
border: 1px solid transparent;
55+
cursor: pointer;
5556

5657
&:hover {
5758
border: 1px solid var(--color-neutral-border);

web/libs/editor/src/components/Timeline/Views/Frames/Frames.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
z-index: 3;
2323
background-color: var(--color-neutral-surface);
2424
position: absolute;
25-
box-shadow: -1px 0 0 rgb(0 0 0 / 5%);
25+
box-shadow: -1px 0 0 rgb(var(--color-neutral-shadow-raw) / 5%);
2626
}
2727

2828
&__filler {
@@ -37,7 +37,7 @@
3737
inset: 0 0 0 var(--offset);
3838
z-index: 1;
3939
position: absolute;
40-
background-color: rgb(0 0 0 / 5%);
40+
background-color: rgb(var(--color-neutral-shadow-raw) / 5%);
4141
}
4242

4343
&__scroll {
@@ -63,8 +63,8 @@
6363
z-index: 2;
6464
position: absolute;
6565
width: var(--frame-size);
66-
box-shadow: inset 0 1px var(--sand_900), inset 0 -1px var(--sand_900);
67-
background: linear-gradient(0deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 5%)), var(--sand_100);
66+
box-shadow: inset 0 1px var(--color-neutral-border), inset 0 -1px var(--color-neutral-border);
67+
background: linear-gradient(0deg, rgb(var(--color-neutral-shadow-raw) / 5%), rgb(var(--color-neutral-shadow-raw) / 5%)), var(--color-neutral-background);
6868

6969
&::before {
7070
inset: -5px;
@@ -83,7 +83,7 @@
8383
display: block;
8484
position: absolute;
8585
pointer-events: none;
86-
background: linear-gradient(180deg, rgb(0 0 0 / 15%) -1.28%, rgb(0 0 0 / 15%) 69.21%, rgb(0 0 0 / 0%) 100%), rgb(0 0 0 / 5%);
86+
background: linear-gradient(180deg, rgb(var(--color-neutral-shadow-raw) / 15%) -1.28%, rgb(var(--color-neutral-shadow-raw) / 15%) 69.21%, rgb(var(--color-neutral-shadow-raw) / 0%) 100%), rgb(var(--color-neutral-shadow-raw) / 5%);
8787
}
8888
}
8989

@@ -95,13 +95,13 @@
9595
width: var(--frame-size);
9696
position: absolute;
9797
pointer-events: none;
98-
background: linear-gradient(0deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 5%)), var(--sand_100);
98+
background: linear-gradient(0deg, rgb(var(--color-neutral-shadow-raw) / 5%), rgb(var(--color-neutral-shadow-raw) / 5%)), var(--color-neutral-surface);
9999

100100
&::before {
101101
top: 0;
102102
left: 50%;
103103
height: 12px;
104-
color: var(--color-neutral-background);
104+
color: var(--color-neutral-content-subtler);
105105
display: flex;
106106
padding: 0 4px;
107107
min-width: 100%;
@@ -112,7 +112,7 @@
112112
position: absolute;
113113
content: attr(data-frame);
114114
transform: translateX(-50%);
115-
background-color: var(--sand_400);
115+
background-color: var(--color-neutral-surface-inset);
116116
}
117117
}
118118

web/libs/editor/src/components/Timeline/Views/Frames/Frames.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export const Frames: FC<TimelineViewProps> = ({
6767

6868
const background = useMemo(() => {
6969
const bg = [
70-
`repeating-linear-gradient(90deg, #fff 1px, #fff ${step - 1}px, rgba(255,255,255,0) ${
70+
`repeating-linear-gradient(90deg, var(--color-neutral-background) 1px, var(--color-neutral-background) ${step - 1}px, rgba(255,255,255,0) ${
7171
step - 1
7272
}px, rgba(255,255,255,0) ${step + 1}px)`,
73-
"linear-gradient(0deg, #FAFAFA, rgba(255,255,255,0) 50%)",
73+
"linear-gradient(0deg, var(--color-neutral-surface), rgba(255,255,255,0) 50%)",
7474
];
7575

7676
return bg.join(", ");

web/libs/editor/src/components/Timeline/Views/Frames/Keypoints.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
display: flex;
1717
padding: 0 8px;
1818
justify-content: space-between;
19-
background: linear-gradient(0deg, var(--hover), var(--hover) 100%), linear-gradient(0deg, #FAFAFA, #FAFAFA 100%);
20-
box-shadow: 1px 0 0 rgb(0 0 0 / 5%);
19+
background: linear-gradient(0deg, var(--hover), var(--hover) 100%), linear-gradient(0deg, var(--color-neutral-surface), var(--color-neutral-surface) 100%);
20+
box-shadow: 1px 0 0 rgb(var(--color-neutral-shadow-raw) / 5%);
2121
}
2222

2323
&__data {
@@ -29,7 +29,7 @@
2929

3030
&__data-item {
3131
&_faded {
32-
opacity: 0.4;
32+
color: var(--color-neutral-content-subtler);
3333
}
3434
}
3535

@@ -96,12 +96,12 @@
9696
}
9797

9898
&:hover {
99-
--hover: rgb(0 0 0 / 4%);
99+
--hover: rgb(var(--color-neutral-shadow-raw) / calc( 8% * var(--shadow-intensity) ));
100100
}
101101

102102
&_selected,
103103
&_selected:hover {
104-
--hover: rgb(0 0 0 / 8%);
104+
--hover: rgb(var(--color-neutral-shadow-raw) / calc( 8% * var(--shadow-intensity) ));
105105
}
106106
}
107107

0 commit comments

Comments
 (0)