-
Notifications
You must be signed in to change notification settings - Fork 727
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
feat: replace wcm with appkit, create options mapping function #5564
base: v2.0
Are you sure you want to change the base?
Conversation
return { | ||
'--w3m-font-family': wcmTheme['--wcm-font-family'], | ||
'--w3m-accent': wcmTheme['--wcm-accent-color'], | ||
'--w3m-color-mix': wcmTheme['--wcm-background-color'], | ||
'--w3m-z-index': wcmTheme['--wcm-z-index'] ? Number(wcmTheme['--wcm-z-index']) : undefined, | ||
|
||
'--w3m-qr-color': wcmTheme['--wcm-accent-color'], | ||
|
||
// Optional: Set master controls for sizing | ||
'--w3m-font-size-master': wcmTheme['--wcm-text-medium-regular-size'], | ||
'--w3m-border-radius-master': wcmTheme['--wcm-container-border-radius'], | ||
'--w3m-color-mix-strength': 8 // Default value, adjust as needed | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is tricky as there is no 1<>1 mapping on these variables. A lot of customization options are not available and implementing in AppKit is not straightforward.
Approach in appkit is based on color mix while WCM has a bunch of much more specific customizations on texts borders and such.
}; | ||
|
||
// Add mobile and desktop wallets as custom wallets if provided | ||
if (wcmConfig.mobileWallets?.length || wcmConfig.desktopWallets?.length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not correct, change
Description
Please include a brief summary of the change.
Type of change
How has this been tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your configuration.
Fixes/Resolves (Optional)
Please list any issues that are fixed by this PR in the format
#<issue number>
. If it fixes multiple issues, please put each issue in a separate line. If this Pull Request does not fix any issues, please delete this section.Examples/Screenshots (Optional)
Please attach a screenshot or screen recording of features/fixes you've implemented to verify your changes. Please also note any relevant details for your configuration. If your changes do not affect the UI, please delete this section.
Use this table template to show examples of your changes:
Checklist
Additional Information (Optional)
Please include any additional information that may be useful for the reviewer.