diff --git a/src/components/ui.tsx b/src/components/ui.tsx index 5bfcdb7..c09c341 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -14,6 +14,7 @@ export function ScreenHeader({ color, back = false, mascot, + exact = false, children, }: { title: ReactNode; @@ -22,11 +23,13 @@ export function ScreenHeader({ /** دکمه‌ی بازگشت؛ true یعنی صفحه‌ی قبل در پشته. */ back?: boolean | (() => void); mascot?: { char: SeyarChar; mood?: SeyarMood; size?: number }; + /** رنگ را همان‌طور که هست بگذار (بی‌تیره‌کردن برای کنتراست)؛ انتخابِ مالک برای چند صفحه. */ + exact?: boolean; children?: ReactNode; }) { const nav = useNav(); const onBack = typeof back === 'function' ? back : nav.back; - const bg = onWhite(color); + const bg = exact ? color : onWhite(color); return (
{gradeTitle && <>{gradeTitle}}اول بخون، بعد آزمونِ جزیره رو بده} - color="#97C0C0" + color="#2FB36B" + exact mascot={{ char: 'sigma', mood: 'happy' }} > {home && totalNodes > 0 && ( diff --git a/src/screens/SubscriptionScreen.tsx b/src/screens/SubscriptionScreen.tsx index 6f89383..c93bc2c 100644 --- a/src/screens/SubscriptionScreen.tsx +++ b/src/screens/SubscriptionScreen.tsx @@ -37,7 +37,7 @@ export function SubscriptionScreen() { return (
- +