From: Sarah Wait Zaranek Date: Sun, 11 Dec 2022 16:03:57 +0000 (-0500) Subject: 19462: Updating status colors X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/95cad596903ea8ade5dd6a9fd1895e4fdffcc2bc 19462: Updating status colors Arvados-DCO-1.1-Signed-off-by: Sarah Wait Zaranek --- diff --git a/src/common/custom-theme.ts b/src/common/custom-theme.ts index fc89a4ae21..73ed8e0660 100644 --- a/src/common/custom-theme.ts +++ b/src/common/custom-theme.ts @@ -23,13 +23,16 @@ export interface ArvadosTheme extends Theme { interface Colors { green700: string; + green800: string; yellow100: string; yellow700: string; yellow900: string; red100: string; red900: string; blue500: string; + blue700: string; grey500: string; + grey600: string; purple: string; orange: string; } @@ -47,12 +50,14 @@ export const themeOptions: ArvadosThemeOptions = { customs: { colors: { green700: green["700"], + green800: green["800"], yellow100: yellow["100"], yellow700: yellow["700"], yellow900: yellow["900"], red100: red["100"], red900: red['900'], blue500: blue['500'], + blue700: blue['700'], grey500: grey500, purple: arvadosPurple, orange: '#f0ad4e', @@ -185,4 +190,4 @@ export const themeOptions: ArvadosThemeOptions = { }, }; -export const CustomTheme = createMuiTheme(themeOptions); \ No newline at end of file +export const CustomTheme = createMuiTheme(themeOptions); diff --git a/src/store/processes/process.ts b/src/store/processes/process.ts index 19f30dd2b3..354d816b2f 100644 --- a/src/store/processes/process.ts +++ b/src/store/processes/process.ts @@ -76,18 +76,16 @@ export const getProcessRuntime = ({ container }: Process) => { export const getProcessStatusColor = (status: string, { customs }: ArvadosTheme) => { switch (status) { case ProcessStatus.RUNNING: - return customs.colors.blue500; + return customs.colors.green800; case ProcessStatus.COMPLETED: - return customs.colors.green700; case ProcessStatus.WARNING: - return customs.colors.yellow700; + return customs.colors.green800; case ProcessStatus.FAILING: - return customs.colors.orange; case ProcessStatus.CANCELLED: case ProcessStatus.FAILED: return customs.colors.red900; default: - return customs.colors.grey500; + return customs.colors.grey600; } };