Merge pull request 'issue(87): make header title color consistent across all modules' (#98) from issue-87 into main
Reviewed-on: https://git.zedobject.local/AcuPedia/acupedia-mobile-ui/pulls/98 Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
commit
71f5177f28
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue