From 917a2c46215aa5836f09f446b67ac704f2e18812 Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 20:15:26 -0500 Subject: [PATCH] feat: dark mode, mark-as-read on scroll, fix card tap targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dark mode: - All colors in Color+Extensions now adaptive (UIColor with traits) - Warm dark palette: dark brown canvas, brighter gold accent, warm cards - Article HTML CSS supports prefers-color-scheme: dark - Meal/macro colors unchanged (vivid on both themes) Reader fixes: - .contentShape(Rectangle()) on cards/rows — fixes tap target issues where small cards couldn't be clicked - Context menu moved from card/row to the NavigationLink wrapper so it doesn't interfere with taps - Mark as read on scroll via .onAppear on each entry - Cards no longer pass vm (cleaner, context menu handled at list level) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Features/Reader/Views/ArticleView.swift | 8 ++++ .../Features/Reader/Views/EntryListView.swift | 39 ++++++++------- .../Shared/Extensions/Color+Extensions.swift | 48 +++++++++++++++---- 3 files changed, 68 insertions(+), 27 deletions(-) diff --git a/ios/Platform/Platform/Features/Reader/Views/ArticleView.swift b/ios/Platform/Platform/Features/Reader/Views/ArticleView.swift index 9d591c9..01c9ff3 100644 --- a/ios/Platform/Platform/Features/Reader/Views/ArticleView.swift +++ b/ios/Platform/Platform/Features/Reader/Views/ArticleView.swift @@ -213,6 +213,7 @@ struct ArticleView: View { +