color pallete

This commit is contained in:
2026-04-07 13:47:55 +05:30
parent b1db439dda
commit 82264a5c34
4 changed files with 52 additions and 6 deletions

View File

@@ -72,6 +72,7 @@ export default function HistoryChart({
onPeriodChange,
comparison,
setComparison,
colorScheme,
}: HistoryChartProps) {
const [activeTab, setActiveTab] = React.useState<string>(tabs[0] || "");
@@ -141,10 +142,11 @@ export default function HistoryChart({
width: "100%",
boxShadow: "none",
border: "1px solid",
borderColor: "divider"
borderColor: "divider",
bgcolor: colorScheme.light,
}}
>
<Typography variant="h6" fontWeight={700} gutterBottom>
<Typography variant="h6" fontWeight={700} gutterBottom color={colorScheme.text}>
{header}
</Typography>
@@ -296,7 +298,7 @@ export default function HistoryChart({
sx={{
width: 6,
height: `${compareHeight}%`,
bgcolor: "grey.400",
bgcolor: `${colorScheme.primary}55`,
borderRadius: 2
}}
/>
@@ -310,7 +312,9 @@ export default function HistoryChart({
sx={{
width: 10,
height: `${currentHeight}%`,
bgcolor: point.highlighted ? "error.main" : "primary.main",
bgcolor: point.highlighted
? colorScheme.primary
: `${colorScheme.primary}99`,
borderRadius: 2
}}
/>