chore: remove some of the deprecated theme.colors.* (#34056)

This commit is contained in:
Maxime Beauchemin
2025-07-04 11:39:03 -07:00
committed by GitHub
parent d6ed819fe2
commit 5d6a979cd0
79 changed files with 595 additions and 948 deletions

View File

@@ -114,15 +114,15 @@ const SqlEditorTabHeader: FC<Props> = ({ queryEditor }) => {
}
const getStatusColor = (state: QueryState, theme: SupersetTheme): string => {
const statusColors: Record<QueryState, string> = {
[QueryState.Running]: theme.colors.info.base,
[QueryState.Success]: theme.colors.success.base,
[QueryState.Failed]: theme.colors.error.base,
[QueryState.Started]: theme.colors.primary.base,
[QueryState.Stopped]: theme.colors.warning.base,
[QueryState.Pending]: theme.colors.grayscale.light1,
[QueryState.Scheduled]: theme.colors.grayscale.light2,
[QueryState.Running]: theme.colorInfo,
[QueryState.Success]: theme.colorSuccess,
[QueryState.Failed]: theme.colorError,
[QueryState.Started]: theme.colorPrimary,
[QueryState.Stopped]: theme.colorWarning,
[QueryState.Pending]: theme.colorIcon,
[QueryState.Scheduled]: theme.colorIcon,
[QueryState.Fetching]: theme.colorWarning,
[QueryState.TimedOut]: theme.colors.error.dark1,
[QueryState.TimedOut]: theme.colorError,
};
return statusColors[state] || theme.colors.grayscale.light2;