Add FXIOS-16205 Add new Nova tokens to the existing ThemeColourPallete#34523
Add FXIOS-16205 Add new Nova tokens to the existing ThemeColourPallete#34523rilury wants to merge 5 commits into
Conversation
🥇 Perfect PR sizeSmaller PRs are easier to review. Thanks for making life easy for reviewers! ✨ 💬 Description craftsmanGreat PR description! Reviewers salute you 🫡 ✅ Code coverage
Client.app: Coverage: 43.51
ToolbarKit: Coverage: 66.16
Generated by 🚫 Danger Swift against d3332ab |
thatswinnie
left a comment
There was a problem hiding this comment.
I don't think we should make tokens optional - every theme should have a color value for every token available. Instead let's assign maybe a clear color to the ones not in use. And we should check which token to use based on the nova feature flag (which also makes it easier to clean the code up later).
|
Hey, @thatswinnie I updated the code. All tokens are now non-optional: Nova themes hold the real values, the others assign .clear to the Nova only tokens. Call sites pick via |
📜 Tickets
Jira ticket
Github issue
💡 Description
This PR consolidates Nova and current themes into a single ThemeColourPalette (remove NovaThemeColourPalette) and wires Nova-only tokens: layerInverse/layerGlassTintNova/textToast (toast), iconPrivate (private badge), iconInverted (tab-tray Done checkmark). The current theme implementation is not impacted.
🎥 Demos
Demo
📝 Checklist