π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Match colors to auth/share
Manav Rathi7e50de6e61ae
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsxindex 8ac91cfef7..81ef858893 100644--- a/web/apps/auth/src/pages/auth.tsx+++ b/web/apps/auth/src/pages/auth.tsx@@ -21,6 +21,7 @@ import {Stack,TextField,Typography,+ useTheme,} from "@mui/material";import { t } from "i18next";import { useRouter } from "next/router";@@ -278,6 +279,7 @@ interface CodeValidityBarProps {}const CodeValidityBar: React.FC<CodeValidityBarProps> = ({ code }) => {+ const theme = useTheme();const [progress, setProgress] = useState(code.type == "hotp" ? 1 : 0);useEffect(() => {@@ -293,14 +295,17 @@ const CodeValidityBar: React.FC<CodeValidityBarProps> = ({ code }) => {return () => ticker && clearInterval(ticker);}, [code]);- const color = progress > 0.4 ? "green" : "orange";+ const progressColor =+ progress > 0.4+ ? theme.vars.palette.accent.light+ : theme.vars.palette.warning.main;return (<divstyle={{width: `${progress * 100}%`,height: "3px",- backgroundColor: color,+ backgroundColor: progressColor,}}/>);@@ -326,7 +331,7 @@ const UnparseableCode: React.FC<UnparseableCodeProps> = ({return (<Stacksx={(theme) => ({- backgroundColor: theme.vars.palette.background.paper,+ backgroundColor: theme.vars.palette.background.elevatedPaper,borderRadius: "4px",overflow: "hidden",p: "16px 20px",