Skip to content

Commit

Permalink
Actually use the color scheme (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
robojumper authored Jan 17, 2024
1 parent 4303c79 commit 0adcdec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Tracker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default class Tracker extends React.Component<Record<string, never>, Trac
updateColorSchemeVars() {
const html = document.querySelector('html')!;
Object.entries(this.state.colorScheme).forEach(([key, val]) => {
html.style.setProperty(`theme-${key}`, val.toString());
html.style.setProperty(`--scheme-${key}`, val.toString());
});
}

Expand Down Expand Up @@ -337,7 +337,7 @@ export default class Tracker extends React.Component<Record<string, never>, Trac
}

return (
<div style={{ height: this.state.height * 0.95, overflow: 'hidden', background: 'var(--scheme-background)' }}>
<div style={{ height: this.state.height * 0.95, overflow: 'hidden', color: 'var(--scheme-text)', background: 'var(--scheme-background)' }}>
<Container fluid>
<Row>
<Col>
Expand Down
1 change: 0 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ body {
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: var(--scheme-text);
}

code {
Expand Down

0 comments on commit 0adcdec

Please sign in to comment.