Fix dark mode visual bugs (stacked on Brian_DarkMode)#252
Merged
caleb-bit merged 2 commits intoBrian_DarkModefrom Apr 27, 2026
Merged
Fix dark mode visual bugs (stacked on Brian_DarkMode)#252caleb-bit merged 2 commits intoBrian_DarkModefrom
caleb-bit merged 2 commits intoBrian_DarkModefrom
Conversation
- CompareMenus TitlePager: fix tab centering (scrollOffset 0 not negative), give all tabs accentPrimary background so unselected tabs look like buttons - EateryDetailsStickyHeader: highlight last visible category when at bottom of list, not just first visible; refactor to single derivedStateOf - FavoritesViewModel: fix "available today" filter using startTimestamp date, normalize meal types (Late_night → Late Dinner), flatMap all events per eatery - FavoritesToggle: remove shadow, increase border to 1.dp - ItemFavoritesCard: accentPrimary background, truncate long item names - MenuCard (Upcoming): accentPrimary background for dark mode contrast - PaymentWidgets: accentPrimary background in dark mode - FilterRow: fillMaxWidth for left-aligned chips - AccountPage: oppTextPrimary tint for settings icon on both header states - Color.kt: lighten AccentPrimaryDark to 0xFF2E2E2E Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Follow-up fixes for the dark mode PR (#222), addressing remaining visual bugs and review comments found during testing.
Changes Made
CompareMenus (
CompareMenusScreen.kt)scrollOffset = -sidePaddingPxwas pushing tabs rightward; with symmetriccontentPadding = sidePadding,scrollOffset = 0correctly centers each tabaccentPrimarybackground so unselected tabs look like buttons, not plain textEateryDetailsStickyHeader (
EateryDetailsStickyHeader.kt)derivedStateOfblock; removed the separatehighlightCategorycomposableFavoritesViewModel (
FavoritesViewModel.kt)startTimestamp.toLocalDate() == todayinstead of end-time comparison, preventing past days' events from showing as availableLate_night→Late Dinner); flatMap over all matching events per eatery so multiple meal types per location are capturedFavoritesToggle (
FavoritesToggle.kt)1.dpfor cleaner lookItemFavoritesCard (
ItemFavoritesCard.kt)accentPrimarycontainer color for dark mode contrastMenuCard / PaymentWidgets / FilterRow / AccountPage / Color.kt
MenuCard(Upcoming):accentPrimarybackground for card contrast in dark modePaymentWidgets:accentPrimarysurface color so payment icons don't disappear in dark modeFilterRow:fillMaxWidthonLazyRowfor proper left-alignmentAccountPage:oppTextPrimarytint on settings icon for both expanded and collapsed header states (icon was invisible on the blue header in dark mode)AccentPrimaryDark: lightened to0xFF2E2E2Efor better card/background contrastTest Coverage
Next Steps (optional)
Brian_DarkModeand verify CI passesRelated PRs or Issues (optional)
Stacked on #222 (Brian dark mode). Closes or partially addresses #244, #245, #246, #247, #248, #249, #250, #251.
Screenshots (optional)