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

Each CalligraphyContext can have its own CalligraphyConfig #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jankovd
Copy link

@jankovd jankovd commented Oct 13, 2015

Useful when Calligraphy is used in a library project where the default
configuration need not be changed, or when different defaults are needed
in multiple contexts.

@chrisjenx
Copy link
Owner

Thats pretty cool, I fear that may be too complicated for some users tho. I'll look through and see if we can make it more digestible.

@jankovd
Copy link
Author

jankovd commented Oct 15, 2015

Note that nothing changes for any existing users of the library, this PR only increases the number of places and ways this library can be used, for example in library projects.

I'll ammend the commit to reduce the visibility of CalligraphyConfig.from since it is of no use to anyone outside the package, and with that, the only api change would be the new CalligraphyContextWrapper.wrap(Context, CalligraphyConfig) method.

@chrisjenx
Copy link
Owner

OK I'll re-review once that's done

On Thu, 15 Oct 2015 12:33 Dejan Jankov [email protected] wrote:

Note that nothing changes for any existing users of the library, this
commit only increases the number of places and ways this library can be
used, for exaple in library projects.

I'll ammend the commit to reduce the visibility of CalligraphyConfig.from
since it is of no use to anyone outside the package, and with that, the
only api change would be the new CalligraphyContextWrapper.wrap(Context,
CalligraphyConfig) method.


Reply to this email directly or view it on GitHub
#220 (comment)
.

Useful when Calligraphy is used in a library project where the default
configuration need not be changed, or when different defaults are needed
in multiple contexts.
@jankovd jankovd force-pushed the per_context_config branch from 8e55c65 to 7392dea Compare October 15, 2015 12:46
@jankovd
Copy link
Author

jankovd commented Oct 15, 2015

Done.

@jankovd
Copy link
Author

jankovd commented Dec 1, 2015

Do you have any plans for reviewing and possibly merging this PR?

@chrisjenx
Copy link
Owner

@jankovd this would be better suited to https://github.com/InflationX/ViewPump

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