Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Rename to hi-contrast mode; keep network colors
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jan 10, 2022
1 parent 8acf01e commit a646499
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const NetworkLabel = ({

return (
<StyledCol middle="xs" start="xs" onClick={onClick}>
<StyledParagraph size="xs" $theme={chain.theme}>
<StyledParagraph size="xs" $theme={chain.theme} className="networkLabel">
{chain.chainName}
</StyledParagraph>
</StyledCol>
Expand Down
9 changes: 8 additions & 1 deletion src/components/Root/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ body > div:first-child {
}

html[class="darkMode"],
html[class="darkMode"] iframe,
html[class="darkMode"] div[style*="background-image"],
html[class="darkMode"] img:not([id="safe-logo"]) {
html[class="darkMode"] svg[color],
html[class="darkMode"] img:not([id="safe-logo"]),
html[class="darkMode"] [class*="networkLabel"] {
filter: invert(1) hue-rotate(180deg);
}

html[class="darkMode"] [class*="networkLabel"] {
outline: 1px solid #333;
}
2 changes: 1 addition & 1 deletion src/components/SafeListSidebar/SafeList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const SafeList = ({ onSafeClick }: Props): ReactElement => {
return (
<Fragment key={chainId}>
<ListItem selected>
<StyledDot {...theme} />
<StyledDot {...theme} className="networkLabel" />
{chainName}
</ListItem>
<MuiList>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/safe/components/Settings/Appearance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ const Appearance = (): ReactElement => {
</Container>

<Container>
<Heading tag="h2">Dark mode (experimental)</Heading>
<Heading tag="h2">Theme (experimental)</Heading>
<FormGroup>
<FormControlLabel
control={<Checkbox checked={darkMode} onChange={() => setDarkMode(!darkMode)} name="showShortName" />}
label="Dark mode"
label="High contrast mode"
/>
</FormGroup>
</Container>
Expand Down

0 comments on commit a646499

Please sign in to comment.