Skip to content

Commit 8de7c20

Browse files
committed
Fix darkmode completed files popover colors
1 parent f1968e0 commit 8de7c20

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

src/components/common/CompletedFilesCounter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ const CompletedFilesCounter = styled(
5656
position: fixed;
5757
bottom: 20px;
5858
right: 20px;
59-
background: #d5eafd;
59+
background: ${({ theme }) => theme.popover.background};
6060
padding: 10px;
61-
border: 1px solid #1890ff;
61+
border: 1px solid ${({ theme }) => theme.popover.border};
6262
border-radius: 20px;
63-
color: #7dadda;
63+
color: ${({ theme }) => theme.popover.text};
6464
transform: ${({ completed }) =>
6565
completed ? 'translateY(0px)' : 'translateY(70px)'};
6666
display: flex;
@@ -76,7 +76,7 @@ const CompletedFilesCounter = styled(
7676
`}
7777
7878
.completedAmount {
79-
color: #1890ff;
79+
color: ${({ theme }) => theme.popover.border};
8080
}
8181
`
8282

src/theme/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ export const lightTheme = {
3333
// Alternating Row Colors for Binary Download component
3434
rowEven: '#fafbfc',
3535
rowOdd: '#ffffff',
36+
37+
// The completed files counter
38+
popover: {
39+
background: '#d5eafd',
40+
text: '#7dadda',
41+
border: '#1890ff',
42+
},
3643
}
3744
export const darkTheme = {
3845
body: '#363537',
@@ -68,4 +75,10 @@ export const darkTheme = {
6875
// Alternating Row Colors for Binary Download component
6976
rowEven: '#363537',
7077
rowOdd: '#222223',
78+
79+
popover: {
80+
text: '#7dadda',
81+
background: '#0E5699',
82+
border: '#aabbca',
83+
},
7184
}

0 commit comments

Comments
 (0)