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

refactor: favicon color-based border #203

Merged
merged 8 commits into from
Apr 2, 2024

Conversation

patricio0312rev
Copy link
Contributor

[connections] change circle color based on favicon color

Summary

  • color-thief-react has been installed and implemented to get the predominant color from the favicon to implement it in the border.
  • New convertToRgba util method to apply opacity to the hex color we get from color-thief.
image

Checklist

  • I checked that both pnpm dev and pnpm dev:bare work as intended
  • I checked the basic extension interactions and made sure wallet selection works
  • I checked my UI changes against the design and there are no notable differences, including responsiveness
  • I checked my (code) changes for obvious issues, debug statements and commented code
  • I opened a corresponding card on Clickup for any remaining TODOs in my code
  • I added a short description on how to test this PR (if necessary)
  • Ready to be merged

@ItsANameToo ItsANameToo added this to the 1.7.0 milestone Apr 2, 2024
@@ -0,0 +1,7 @@
export const convertHexToRGBA = (hex: string, opacity: string): string => {
Copy link
Contributor

Choose a reason for hiding this comment

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

please add a utils testcase for this as well

>
<img className='h-full w-full object-contain' src={appLogo} alt={alt || appName} />
</div>
<Color src={appLogo} crossOrigin='anonymous' format='hex'>
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't seem to apply to the "connected apps" list as it still has the grey background there at all times

@ItsANameToo ItsANameToo marked this pull request as draft April 2, 2024 08:44
@patricio0312rev patricio0312rev marked this pull request as ready for review April 2, 2024 11:48
@ItsANameToo ItsANameToo merged commit 27edcd2 into develop Apr 2, 2024
8 checks passed
@ItsANameToo ItsANameToo deleted the refactor/favicon-color-border branch April 2, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants