issue(87): make header title color consistent across all modules #98

Merged
amit merged 1 commits from issue-87 into main 2026-10-30 05:10:05 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 9153dce196 - Show all commits

View File

@ -38,7 +38,6 @@ export function ContentPageHeader({
const effectiveTone = tone || contextTone; const effectiveTone = tone || contextTone;
const resolvedTitleColor = const resolvedTitleColor =
titleColor || titleColor ||
(effectiveTone && toneColors[effectiveTone]?.title) ||
Colors.textPrimary; Colors.textPrimary;
useFocusEffect( useFocusEffect(
useCallback(() => { useCallback(() => {

View File

@ -21,19 +21,19 @@ export const toneColors: Record<PageTone, ToneColorScheme> = {
accent: Colors.purple, // "#75649B" accent: Colors.purple, // "#75649B"
soft: Colors.purpleSoft, // "#F6F3FA" soft: Colors.purpleSoft, // "#F6F3FA"
border: "#E8E2F2", border: "#E8E2F2",
title: Colors.purple, // "#75649B" title: Colors.textPrimary,
}, },
blue: { blue: {
accent: Colors.blue, // "#4E7496" accent: Colors.blue, // "#4E7496"
soft: Colors.blueSoft, // "#F1F6FA" soft: Colors.blueSoft, // "#F1F6FA"
border: "#DAE6F0", border: "#DAE6F0",
title: Colors.blue, // "#4E7496" title: Colors.textPrimary,
}, },
green: { green: {
accent: Colors.primary, // "#2E7D32" accent: Colors.primary, // "#2E7D32"
soft: "#F2F8F4", soft: "#F2F8F4",
border: "#DCEADF", border: "#DCEADF",
title: Colors.primary, // "#2E7D32" title: Colors.textPrimary,
}, },
}; };