Skip to content

Fixes for Material You#269

Merged
omeritzics merged 11 commits intomainfrom
you-fix
Mar 26, 2026
Merged

Fixes for Material You#269
omeritzics merged 11 commits intomainfrom
you-fix

Conversation

@omeritzics
Copy link
Copy Markdown
Owner

@omeritzics omeritzics commented Mar 25, 2026

Summary by CodeRabbit

  • Style

    • Enhanced dialog visuals (background, shadow, rounded shape, and typography)
    • Improved bottom-sheet background consistency and content spacing
    • Refined download progress bar colors for better contrast
    • Adjusted list/tile spacing for improved alignment and balance
  • Localization

    • Expanded Hebrew translations for export flows, system messages, architecture filters, and pluralization strings

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b632ce65-dc4a-4e0a-af65-3094402d1731

📥 Commits

Reviewing files that changed from the base of the PR and between 88a73aa and 7fafd72.

📒 Files selected for processing (1)
  • lib/pages/apps.dart
✅ Files skipped from review due to trivial changes (1)
  • lib/pages/apps.dart

📝 Walkthrough

Walkthrough

Refactors theme creation in lib/main.dart by extracting an Expressive TextTheme variable and adding a DialogThemeData. Adjusts bottom-sheet container/background and progress indicator in lib/pages/app.dart. Modifies list-tile paddings in lib/pages/apps.dart. Updates multiple Hebrew translation strings in assets/translations/he.json.

Changes

Cohort / File(s) Summary
Theme Refactor & DialogTheme
lib/main.dart
Extracted TextTheme into a local textTheme variable in createTheme(...); added dialogTheme: DialogThemeData(...) with conditional background/surfaceTint, shadowColor, elevation, rounded shape, and title/content text styles derived from the color scheme and isDark.
Bottom Sheet & Progress
lib/pages/app.dart
Wrapped bottom-sheet content in a Container using Theme.of(context).colorScheme.surfaceContainerLow as background; restructured padding/rows; LinearProgressIndicator now sets backgroundColor (surfaceContainerHighest) and valueColor (AlwaysStoppedAnimation<Color> from colorScheme.primary).
List Tile Spacing
lib/pages/apps.dart
Removed height: double.infinity from horizontal-list trailing action; increased vertical padding (contentPadding.vertical 12→16) and added minVerticalPadding: 8.
Translations (Hebrew)
assets/translations/he.json
Replaced/updated multiple Hebrew strings: author, export-related messages, import phrasing, CPU-architecture filter labels, defaultPseudoVersioningMethod, and certificate hash pluralization entries.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • AMOLED Theme fix #268: Overlaps with lib/main.dart theme refactor (TextTheme extraction + DialogTheme) and similar bottom-sheet background changes in lib/pages/app.dart.

Poem

🐰 Hop hop, I hopped through theme and text,
I tucked dialogs safe, and padded lists next,
Sheets now wear soft surfaces bright,
Hebrew words fitted just right,
A tiny rabbit cheers the UI tonight.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Fixes for Material You' is vague and generic, failing to convey specific details about the changes made across multiple files. Consider a more descriptive title that highlights the main changes, such as 'Refactor theme configuration and bottom sheet styling' or 'Update Material You theme dialogs and styling.'
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch you-fix

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces several refinements to the application's Material You theming, primarily focusing on enhancing visual consistency and compatibility across different UI components. Changes include refactoring text theme definitions for better organization, implementing a dedicated dialog theme for improved AMOLED display integration, and adjusting bottom sheet and progress indicator styling to align with the overall Material You design system.

Highlights

  • Theme Refactoring: The TextTheme definition within the createTheme function was extracted into a local variable for improved reusability and maintainability across the application's theme.
  • AMOLED Compatibility: A DialogThemeData was implemented in the main theme to ensure better compatibility with AMOLED black themes, customizing background, tint, shadow, elevation, shape, and text styles for dialogs.
  • Bottom Sheet Styling: The getBottomSheetMenu widget was updated to explicitly set a background color using surfaceContainerLow, enhancing visual consistency with the Material You theme.
  • Progress Indicator Theming: Specific backgroundColor and valueColor properties were applied to the LinearProgressIndicator in the app's bottom sheet, aligning its appearance with the overall theme's color scheme.
Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/ossar.yml
    • .github/workflows/translations.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors theme definitions in lib/main.dart by extracting the TextTheme into a local variable within the createTheme function and adds a DialogThemeData for AMOLED theme compatibility. It also updates lib/pages/app.dart to apply theme colors to bottom sheets and customize LinearProgressIndicator colors. The createTheme function is quite large and could be extracted into a private method of the _UpdatiumState class for improved code organization and readability.

if (settingsProvider.useSystemFont) NativeFeatures.loadSystemFont();

// Shared theme component generator with Material Design Expressive
ThemeData createTheme(ColorScheme scheme, bool isDark) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The createTheme function, defined within the DynamicColorBuilder's builder, is very large. For better code organization and to make the build method more readable, consider extracting this function into a private method of the _UpdatiumState class.

This change would improve maintainability by separating the theme creation logic from the widget build logic.

Example structure:

class _UpdatiumState extends State<Updatium> {
  // ...

  ThemeData _createTheme(ColorScheme scheme, bool isDark, SettingsProvider settingsProvider) {
    // The logic from the current createTheme function would go here.
  }

  @override
  Widget build(BuildContext context) {
    final settingsProvider = context.watch<SettingsProvider>();
    // ...
    return DynamicColorBuilder(
      builder: (lightDynamic, darkDynamic) {
        // ... color scheme logic ...
        return MaterialApp(
          // ...
          theme: _createTheme(lightColorScheme, false, settingsProvider),
          darkTheme: _createTheme(darkColorScheme, true, settingsProvider),
          // ...
        );
      },
    );
  }
}

@omeritzics omeritzics merged commit 03d093b into main Mar 26, 2026
8 checks passed
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.

Transparent settings menu Items on the grid view are overlapping the items of the next row

1 participant