Skip to content

feat: enhancing contrast in light mode - #244

Merged
richardthe3rd merged 4 commits into
mainfrom
copilot/improve-hamburger-menu-contrast
May 10, 2026
Merged

feat: enhancing contrast in light mode#244
richardthe3rd merged 4 commits into
mainfrom
copilot/improve-hamburger-menu-contrast

Conversation

Copilot AI commented May 10, 2026

Copy link
Copy Markdown
Contributor

Pull request created by AI Agent

@richardthe3rd
richardthe3rd marked this pull request as ready for review May 10, 2026 14:08
Copilot AI review requested due to automatic review settings May 10, 2026 14:08
Copilot AI and others added 2 commits May 10, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves perceived contrast in light mode by adjusting several UI element colors (menu items, drag handles, subtitles, star rating inactive color) and adds widget tests to lock in the new theme-driven color expectations.

Changes:

  • Update bottom-sheet drag-handle colors to use colorScheme.onSurfaceVariant (no alpha) across multiple sheets.
  • Increase contrast for overflow menu item icon/text color and for StarRating inactive stars.
  • Add widget tests covering the light-theme “high contrast” behavior for overflow menu items, sheet drag handles, and star rating.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/widgets/overflow_menu_test.dart Adds a light-theme assertion for overflow menu item icon/text color.
test/widgets/festival_menu_sheets_test.dart Allows injecting a theme into test widgets and adds light-theme drag-handle color assertions.
test/widgets_test.dart Adds a light-theme assertion for default inactive star color.
lib/widgets/star_rating.dart Makes default inactive stars use onSurfaceVariant (no extra transparency).
lib/widgets/overflow_menu.dart Applies explicit high-contrast colors to popup menu item icons/text.
lib/widgets/festival_menu_sheets.dart Updates drag-handle colors to onSurfaceVariant (opaque).
lib/widgets/drink_list_section.dart Changes subtitle/icon color to onSurface for higher contrast.
lib/screens/drinks_screen.dart Updates drag-handle colors in filter/sort/style sheets to onSurfaceVariant (opaque).
lib/screens/about_screen.dart Updates theme selector drag-handle color to onSurfaceVariant (opaque).
Comments suppressed due to low confidence (1)

test/widgets/festival_menu_sheets_test.dart:401

  • This drag-handle lookup scans all Containers and matches on size/decoration, which is brittle and can break with unrelated widget tree changes. Prefer adding a Key to the drag-handle Container in the sheet widget and using find.byKey here.
}

Comment on lines 164 to 168
Icon(
Icons.info_outline,
size: 14,
color: theme.colorScheme.onSurfaceVariant.withValues(alpha: 0.6),
color: theme.colorScheme.onSurface,
),
Comment on lines +134 to +138
final handleContainer = tester.widget<Container>(
find.byKey(const Key('festival_selector_drag_handle')),
);
final decoration = handleContainer.decoration! as BoxDecoration;

Comment on lines +301 to 305

expect(decoration.color, lightTheme.colorScheme.onSurfaceVariant);
});
});

@github-actions

Copy link
Copy Markdown
Contributor

LCOV of commit 1688749 during CI #117

Summary coverage rate:
  lines......: 78.4% (2347 of 2993 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate:
                                                      |Lines       |Functions  |Branches    
  Filename                                            |Rate     Num|Rate    Num|Rate     Num
  ==========================================================================================
  lib/screens/about_screen.dart                       | 0.0%    129|    -     0|    -      0
  lib/screens/drinks_screen.dart                      | 0.0%    259|    -     0|    -      0
  lib/widgets/drink_list_section.dart                 | 0.0%     53|    -     0|    -      0
  lib/widgets/festival_menu_sheets.dart               | 0.0%    176|    -     0|    -      0
  lib/widgets/overflow_menu.dart                      | 0.0%     30|    -     0|    -      0
  lib/widgets/star_rating.dart                        | 0.0%     27|    -     0|    -      0

@richardthe3rd richardthe3rd changed the title Analyzing and enhancing contrast in light mode UI: Analyzing and enhancing contrast in light mode May 10, 2026
@codecov

codecov Bot commented May 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/screens/drinks_screen.dart 33.33% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@richardthe3rd richardthe3rd changed the title UI: Analyzing and enhancing contrast in light mode style: Analyzing and enhancing contrast in light mode May 10, 2026
@richardthe3rd richardthe3rd changed the title style: Analyzing and enhancing contrast in light mode feat: enhancing contrast in light mode May 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your preview deployment is ready!

Preview URL: https://copilot-improve-hamburger-me.staging-cambeerfestival.pages.dev

This preview will be automatically updated when you push new commits to this PR.

@richardthe3rd
richardthe3rd merged commit 6327c04 into main May 10, 2026
10 of 11 checks passed
@richardthe3rd
richardthe3rd deleted the copilot/improve-hamburger-menu-contrast branch May 10, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants