Skip to content

Commit

Permalink
Merge pull request #162 from peterklingelhofer/fix-player-header-icon…
Browse files Browse the repository at this point in the history
…-dark-mode-colors

Fix player header icon dark mode colors
  • Loading branch information
simonv3 authored Jun 24, 2022
2 parents d21c710 + 84c8202 commit 1cdf905
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/AudioWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ export const AudioWrapper: React.FC<{
box-shadow: none;
padding: 0;
margin-right: 1rem;
@media (prefers-color-scheme: dark) {
filter: invert(80%);
}
@media (prefers-color-scheme: light) {
background: #fff;
}
}
`}
/>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Wrapper = styled.header`
min-height: 48px;
border-bottom: 1px solid ${(props) => colorShade(props.theme.colors.text, 20)};
display: flex;
filter: drop-shadow(0 0 0.15rem #000);
flex-direction: column;
position: sticky;
width: 100%;
Expand Down Expand Up @@ -46,6 +47,9 @@ const Content = styled.div`
scale: 0.7;
margin-left: -0.5rem;
height: 46px;
@media (prefers-color-scheme: dark) {
filter: invert(1);
}
}
@media (prefers-color-scheme: dark) {
Expand Down
10 changes: 9 additions & 1 deletion src/components/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ const playerClass = css`
width: 100%;
z-index: 10;
bottom: 0;
background-color: #fff;
filter: drop-shadow(0 0 0.075rem #000);
@media (prefers-color-scheme: dark) {
background: #333;
}
@media (prefers-color-scheme: light) {
background: #fff;
}
@media (max-width: ${bp.small}px) {
height: 150px;
Expand Down

0 comments on commit 1cdf905

Please sign in to comment.