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

Update Dynamic SVG based xml to ImageVector #3

Merged
merged 6 commits into from
Jun 24, 2024

Conversation

Taewan-P
Copy link
Owner

Previously, I used xml-based material ui package to add custom theme attributes for dynamic color change inside svg resource (xml). This was to change the svg color dynamically depending on the current user's theme.

Now this is removed and replaced with ImageVector.
However, when theme changes, the ImageVector should be recomposed. Implemented by just calculating when called every time. This can be expensive, but these ImageVector are only used in static screens so it will be fine.

@Taewan-P Taewan-P self-assigned this Jun 24, 2024
Copy link

@Taewan-P Taewan-P added the refactor Not a new feature but includes refactoring label Jun 24, 2024
@Taewan-P Taewan-P merged commit e89ac5f into main Jun 24, 2024
3 checks passed
@Taewan-P Taewan-P deleted the refactor/xml-to-imagevector branch June 24, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Not a new feature but includes refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant