From df14812fa7674d64d316eb15e68df7cdab6280ad Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Mon, 4 Nov 2024 15:09:49 +0500 Subject: [PATCH] Fix slider colors --- web/components/theme/AntdTheme.tsx | 5 +++++ web/styles/antd-default.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/web/components/theme/AntdTheme.tsx b/web/components/theme/AntdTheme.tsx index a5ef3c0d7..73fbcd41f 100644 --- a/web/components/theme/AntdTheme.tsx +++ b/web/components/theme/AntdTheme.tsx @@ -43,6 +43,11 @@ export const AntdTheme: FC = ({ children }) => { Tag: { defaultBg: readCSSVar('--tag-default-color'), }, + Slider: { + trackBg: readCSSVar('--theme-color-action-hover'), + handleColor: readCSSVar('--theme-color-action-hover'), + handleActiveColor: readCSSVar('--primary-color'), + }, borderRadius: parseInt(readCSSVar('--border-radius-base'), 10), // background-color-light needs mapping diff --git a/web/styles/antd-default.js b/web/styles/antd-default.js index 6815cad30..632c54d4c 100644 --- a/web/styles/antd-default.js +++ b/web/styles/antd-default.js @@ -33,6 +33,11 @@ const AntdDefaultCustomTokens = { Tag: { defaultBg: '#6544e9', }, + Slider: { + trackBg: '#7a5cf3', + handleColor: '#7a5cf3', + handleActiveColor: '#6544e9', + }, borderRadius: 5, colorPrimary: '#6544e9', colorPrimaryHover: '#6544e9',