Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support changing the custom tabs toolbar and navigation colors #1628

Merged
merged 4 commits into from
May 15, 2024

Conversation

jreij
Copy link
Collaborator

@jreij jreij commented May 14, 2024

Description

Currently we directly use colorPrimary as the toolbar color for our custom tabs where we launch external redirects. This PR allows changing this color as well as 3 other customizable colors (toolbarColor, secondaryToolbarColor, navigationBarColor and navigationBarDividerColor).

To preserve consistency with custom styling across the library, we added an XML style that can be overridden and will be applied internally to the custom tabs. This also allows easily setting different light and dark theme colors.

Checklist

  • PR is labelled
  • Changes are tested manually
  • Related issues are linked

COAND-907

@jreij jreij added the Feature [PRs only] Indicates a new feature addition label May 14, 2024
@jreij jreij requested a review from a team as a code owner May 14, 2024 08:20
<attr name="adyenStrokeColor" format="color" />
</declare-styleable>

<declare-styleable name="AdyenCheckoutCustomTabs">
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this name supposed to be the same as a custom view? And since we don't have a view, is it necessary to declare a styleable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right I missed that, can you check the latest commit?

@jreij jreij force-pushed the feature/custom-tabs-styling branch from 7d9dc10 to 4b348a9 Compare May 14, 2024 15:31
Copy link

sonarcloud bot commented May 14, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@jreij jreij linked an issue May 15, 2024 that may be closed by this pull request
@jreij jreij merged commit 6aa503b into develop May 15, 2024
7 of 8 checks passed
@jreij jreij deleted the feature/custom-tabs-styling branch May 15, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature [PRs only] Indicates a new feature addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v5.3.1] Add a separate color resource to Chrome Custom Tabs
2 participants