-
End date:
+
({
segment: {
position: 'absolute',
height: 12,
- background: theme.palette.states.drivingBlue,
+ background: 'var(--color-driving)',
},
statusGradient: {
- background: 'linear-gradient(rgba(0, 0, 0, 0.0) 4%, rgba(255, 255, 255, 0.025) 10%, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.4))',
+ background: 'linear-gradient(transparent 4%, color-mix(in srgb, var(--color-content) 2.5%, transparent) 10%, color-mix(in srgb, var(--color-scrim) 10%, transparent) 25%, color-mix(in srgb, var(--color-scrim) 40%, transparent))',
height: 12,
left: 0,
pointerEvents: 'none',
@@ -52,21 +51,21 @@ const styles = () => ({
width: '100%',
'&.active': {},
'&.engage': {
- background: theme.palette.states.engagedGreen,
+ background: 'var(--color-engaged)',
},
'&.overriding': {
- background: theme.palette.states.engagedGrey,
+ background: 'var(--color-engaged-override)',
},
'&.alert': {
'&.userPrompt': {
- background: theme.palette.states.alertOrange,
+ background: 'var(--color-alert)',
},
'&.critical': {
- background: theme.palette.states.alertRed,
+ background: 'var(--color-alert-critical)',
},
},
'&.bookmark, &.flag': { // TODO: remove flag selector once 14 days expires old events caches
- background: theme.palette.states.userBookmark,
+ background: 'var(--color-bookmark)',
zIndex: 1,
},
},
@@ -81,14 +80,14 @@ const styles = () => ({
},
},
ruler: {
- backgroundColor: 'rgb(37, 51, 61)',
+ backgroundColor: 'var(--color-timeline-track)',
touchAction: 'none',
width: '100%',
height: 44,
},
rulerRemaining: {
- backgroundColor: 'rgba(29, 34, 37, 0.9)',
- borderLeft: '1px solid #D8DDDF',
+ backgroundColor: 'color-mix(in srgb, var(--color-surface) 90%, transparent)',
+ borderLeft: '1px solid var(--color-boundary-strong)',
position: 'absolute',
left: 0,
height: 44,
@@ -96,27 +95,11 @@ const styles = () => ({
pointerEvents: 'none',
width: '100%',
},
- loopStart: {
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
- borderRight: '1px solid rgba(0, 0, 0, 0.8)',
- position: 'absolute',
- left: 0,
- height: 44,
- pointerEvents: 'none',
- },
- loopEnd: {
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
- borderLeft: '1px solid rgba(0, 0, 0, 0.8)',
- position: 'absolute',
- right: 0,
- height: 44,
- pointerEvents: 'none',
- },
dragHighlight: {
pointerEvents: 'none',
- background: 'rgba(255, 255, 255, 0.1)',
- borderLeft: '1px solid rgba(255, 255, 255, 0.3)',
- borderRight: '1px solid rgba(255, 255, 255, 0.3)',
+ background: 'color-mix(in srgb, var(--color-content) 10%, transparent)',
+ borderLeft: '1px solid color-mix(in srgb, var(--color-content) 30%, transparent)',
+ borderRight: '1px solid color-mix(in srgb, var(--color-content) 30%, transparent)',
position: 'absolute',
height: 44,
},
diff --git a/src/components/anonymous.jsx b/src/components/anonymous.jsx
index bacfaf651..63c3c960f 100644
--- a/src/components/anonymous.jsx
+++ b/src/components/anonymous.jsx
@@ -7,8 +7,6 @@ import PropTypes from 'prop-types';
import qs from 'query-string';
import { withStyles } from '@material-ui/core/styles';
-import Typography from '@material-ui/core/Typography';
-
import {config as AuthConfig} from '@commaai/my-comma-auth';
import Colors from '../colors';
@@ -20,6 +18,7 @@ const styles = () => ({
baseContainer: {
width: '100%',
height: '100vh',
+ backgroundColor: '#000',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
@@ -60,13 +59,13 @@ const styles = () => ({
width: 380,
maxWidth: '90%',
textAlign: 'center',
- margin: '10px 0 30px',
+ margin: '20px 0 30px',
fontSize: '18px',
},
logInButton: {
cursor: 'pointer',
alignItems: 'center',
- background: '#ffffff',
+ background: 'var(--color-field)',
display: 'flex',
borderRadius: 80,
fontSize: 21,
@@ -77,14 +76,14 @@ const styles = () => ({
maxWidth: '90%',
marginBottom: 10,
'&:hover': {
- background: '#eee',
+ background: 'var(--color-field-hover)',
},
},
buttonText: {
fontSize: 18,
width: 190,
textAlign: 'center',
- color: 'black',
+ color: 'var(--color-content-inverse)',
fontWeight: 600,
},
buttonImage: {
@@ -135,21 +134,21 @@ class AnonymousLanding extends Component {