Skip to content

Commit

Permalink
Update graph background on dark mode (#461)
Browse files Browse the repository at this point in the history
* Update graph background on dark mode

* Update converter version
  • Loading branch information
Derstilon authored Jun 25, 2022
1 parent d8e2d03 commit a3a4d60
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@uiw/react-textarea-code-editor": "^2.0.2",
"comlink": "^4.3.1",
"glob": "^8.0.3",
"ky": "^0.30.0",
"ky": "^0.31.0",
"notistack": "^2.0.5",
"react": "^17.0.2",
"react-async-script": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion public/libs/jsroot
Submodule jsroot updated 205 files
7 changes: 5 additions & 2 deletions src/WrapperApp/components/ResultsPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Box, Card, CardContent, Grid, Tab, Tabs, Typography } from '@mui/material';
import { Box, Card, CardContent, Grid, Tab, Tabs, Typography, useMediaQuery } from '@mui/material';
import React, { SyntheticEvent, useEffect, useState } from 'react';
import { generateGraphs } from '../../JsRoot/GraphData';
import { TabPanel } from './TabPanel';
import { useStore } from '../../services/StoreService';

function ResultsPanel() {
const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)');

const { resultsSimulationData: simulation } = useStore();

const [tabsValue, setTabsValue] = useState(0);
Expand Down Expand Up @@ -70,7 +72,8 @@ function ResultsPanel() {
</Card>
<Card
sx={{
margin: '0.5rem'
margin: '0.5rem',
bgcolor: prefersDarkMode ? 'text.disabled' : 'background.paper'
}}>
<CardContent>
{simulation?.result?.estimators.map((estimator, idx) => {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/converter

0 comments on commit a3a4d60

Please sign in to comment.