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

Extend configuration to include colors and fonts #26

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

yefimtsev
Copy link
Contributor

What's changed

  • Add Colors struct to the configuration to handle color customization of the buttons, instruction and background
  • Add Fonts struct to the configuration to handle font customization of the buttons and instruction
  • Remove hardcoded color and font references in CropView
  • Fix trailing whitespaces in CropView.swift

Why

First of all, thanks for the library, @benedom!

After integrating it into my project, I realized that I’d really like the ability to customize the hardcoded design to better fit the existing styles in my project.

To avoid overengineering, I extended the approach used for customTexts, though I made slight changes to the naming. In this implementation, both fonts and colors are always fetched from the configuration.

Looking forward to your feedback!

@yefimtsev yefimtsev changed the title Extent configuration with colors and fonts Extend configuration to include colors and fonts Oct 20, 2024
* Add Colors struct to the configuration to handle color customization of the buttons, instruction and background
* Add Fonts struct to the configuration to handle font customization of the buttons and instruction
* Remove hardcoded color and font references in CropView
* Fix trailing whitespaces in CropView.swift
@benedom
Copy link
Owner

benedom commented Oct 21, 2024

Hey @yefimtsev thanks for the improvements! I adjusted a bit of your code, please check if this works for you! If yes, I will merge and create a new release :)

@yefimtsev
Copy link
Contributor Author

Looks good to me, @benedom :)
Thanks for the updates!

@benedom benedom merged commit 454d0a0 into benedom:master Oct 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants