Skip to content

Conversation

@david-livefront
Copy link
Collaborator

🎟️ Tracking

N/A

📔 Objective

Add support for dynamic colors in multi-tonal vector illustrations and icons.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

This commit introduces support for dynamic colors in the application.

-   A new setting `isDynamicColorsEnabled` is added to `SettingsDiskSource` and `SettingsRepository` to persist and retrieve the dynamic colors preference.
-   A new flow `isDynamicColorsEnabledFlow` is added to track the changes of `isDynamicColorsEnabled`.
-   A new switch "Dynamic colors" is added in the Appearance Screen.
- The `MainState` is updated with the `isDynamicColorsEnabled` attribute.
- `BitwardenTheme` is updated to set the dynamic color.
- The `AppearanceViewModel` is updated to set the `isDynamicColorsEnabled`.
- Changed the toggle button switch color to `onPrimary` in the `dynamicColorScheme`.
This commit introduces a warning dialog that is displayed when the user attempts to enable dynamic colors in the appearance settings.
- Changed the toggle button switch `backgroundOff` color to `onSurfaceVariant`.
- Changed the toggle button switch color to `onPrimary`.
@codecov
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.93%. Comparing base (1eb741a) to head (5c4aa5c).

Additional details and impacted files
@@                            Coverage Diff                            @@
##           innovation-sprint/dynamic-colors/base    #4897      +/-   ##
=========================================================================
- Coverage                                  89.36%   83.93%   -5.43%     
=========================================================================
  Files                                        496      615     +119     
  Lines                                      42254    48054    +5800     
  Branches                                    5990     6685     +695     
=========================================================================
+ Hits                                       37759    40336    +2577     
- Misses                                      2421     5459    +3038     
- Partials                                    2074     2259     +185     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2025

Logo
Checkmarx One – Scan Summary & Details2105390b-0e6e-46fc-ade3-3a984908dd86

Great job, no security vulnerabilities found in this Pull Request

@SaintPatrck SaintPatrck force-pushed the multi-tonal-imagery branch from 9a4a22f to 5c4aa5c Compare March 20, 2025 15:06
@SaintPatrck SaintPatrck added the hold do not merge yet label Mar 21, 2025
@phil-livefront phil-livefront self-requested a review March 21, 2025 15:58
@david-livefront david-livefront deleted the multi-tonal-imagery branch May 13, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold do not merge yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants