Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

#11 customizable fonts #12

Merged
merged 4 commits into from
Aug 19, 2016
Merged

#11 customizable fonts #12

merged 4 commits into from
Aug 19, 2016

Conversation

pauljonescodes
Copy link
Contributor

Allows users of this framework to customize the fonts using the theme API, for instance:

pickerViewController.theme.titleLabelFont = UIFont.customFontWithSize(18)
pickerViewController.theme.fontForAlbumNameAndCount = UIFont.otherCustomFontWithSize(18)
pickerViewController.theme.fontForPhotoSelectionOrder = UIFont.customFontBoldWithSize(17)

@yahoocla
Copy link

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! 😄

@yahoocla
Copy link

CLA is valid!

@ZZBHuang
Copy link
Contributor

@PLJNS I sent a PR to your fork. Please check it out.

Trim a little for fitting code convention
@@ -419,7 +419,7 @@ - (void)updateViewWithCollectionItem:(NSDictionary *)collectionItem

UIButton *albumButton = [UIButton buttonWithType:UIButtonTypeSystem];
albumButton.tintColor = self.theme.titleLabelTextColor;
albumButton.titleLabel.font = [UIFont systemFontOfSize:18.0];
albumButton.titleLabel.font = self.theme.titleLabelFont ?: [UIFont systemFontOfSize:18.0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PLJNS I forgot to change this line. Could you help me to change this line into
albumButton.titleLabel.font = self.theme.titleLabelFont;
? Because theme.titleLabelFont is non-null property, we don't need to check it here.

@ZZBHuang
Copy link
Contributor

@PLJNS Looks good. I'll merge it after travis passes this build.

@ZZBHuang ZZBHuang merged commit 96952a7 into YahooArchive:master Aug 19, 2016
@pauljonescodes
Copy link
Contributor Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants