Skip to content

Commit

Permalink
DataGrid: Re-saturate colors a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc committed May 11, 2023
1 parent 0dec177 commit 69f5291
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/DataGrid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { makeStyles } from "@mui/styles";
import { colorTint } from "../../lib/utils";

function getThemePaletteMode(palette) {
return palette.mode || palette.mode;
return palette.mode;
}

const useStyles = makeStyles((theme) => {
const statusColors = {
pass: colorTint(theme.palette.success.main, 35),
fail: colorTint(theme.palette.error.main, 30),
running: colorTint(theme.palette.warning.main, 35),
waiting: colorTint(theme.palette.info.main, 35),
dead: colorTint(theme.palette.error.main, 25),
pass: colorTint(theme.palette.success.main, 20),
fail: colorTint(theme.palette.error.main, 15),
running: colorTint(theme.palette.warning.main, 20),
waiting: colorTint(theme.palette.info.main, 20),
dead: colorTint(theme.palette.error.main, 10),
// queued is neutral color
};
const getSelectedColor = (color) => {
Expand Down

0 comments on commit 69f5291

Please sign in to comment.