Skip to content

Commit

Permalink
refactor(project): add dark theme to replay page (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored Feb 28, 2022
1 parent 9455f53 commit 0f7a6de
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
31 changes: 30 additions & 1 deletion desktop/renderer-app/src/pages/ReplayPage/ReplayPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
.replay-whiteboard {
width: 100%;
height: 100%;
background: #f3f6f9;
background: #fff;
}

.replay-overlay {
Expand Down Expand Up @@ -113,3 +113,32 @@
margin: 0;
}
}

.player-mid-box-time {
color: var(--text);
font-size: 12px;
font-family: var(--font-family);
font-variant-numeric: tabular-nums;
}

.flat-color-scheme-dark {
.replay-whiteboard {
background-color: var(--grey-10);
}
.replay-play-icon {
background-color: var(--grey-12);
border: 1px solid var(--grey-8);
}
.player-schedule {
background-color: var(--grey-12);
border: 1px solid var(--grey-8);
box-shadow: none;
}
.ui-video-seek-slider .track .main {
background-color: var(--grey-10);
}
.ui-video-seek-slider .track .main .connect,
.ui-video-seek-slider .thumb .handler {
background-color: var(--primary);
}
}
31 changes: 30 additions & 1 deletion web/flat-web/src/pages/ReplayPage/ReplayPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
.replay-whiteboard {
width: 100%;
height: 100%;
background: #f3f6f9;
background: #fff;
}

.replay-overlay {
Expand Down Expand Up @@ -113,3 +113,32 @@
margin: 0;
}
}

.player-mid-box-time {
color: var(--text);
font-size: 12px;
font-family: var(--font-family);
font-variant-numeric: tabular-nums;
}

.flat-color-scheme-dark {
.replay-whiteboard {
background-color: var(--grey-10);
}
.replay-play-icon {
background-color: var(--grey-12);
border: 1px solid var(--grey-8);
}
.player-schedule {
background-color: var(--grey-12);
border: 1px solid var(--grey-8);
box-shadow: none;
}
.ui-video-seek-slider .track .main {
background-color: var(--grey-10);
}
.ui-video-seek-slider .track .main .connect,
.ui-video-seek-slider .thumb .handler {
background-color: var(--primary);
}
}

0 comments on commit 0f7a6de

Please sign in to comment.