954 Commits

Author SHA1 Message Date
ianegordon
2e48edf99f
[Typography] Migrate from FontScheme to TypographyScheming (#3219)
* Migrate to Font Scheme

* Add support for iOS 8.0-8.1

* Update Themers and Tests

* Font -> Typography

* Rebase

* Update BUILD

* Cleanup

* Update naming, add docs

* Fix BUILD target

* Add Typography Dependency

* BUILD updates

* BUILD fix

* Add tests

* Typography
2018-04-04 23:47:49 -04:00
featherless
2be6cd9de5
[Themes] Add new semantic color scheme (#3216)
The new semantic color scheme includes a number of new properties focused on their contextual use within components. This should make it easier to provide consistent, holistic theming for an entire app using a set of baseline colors and mappings.

* `primaryColor` - Displayed most frequently across your app.
* `primaryColorVariant`  - A tonal variation of primary color.
* `secondaryColor` - Accents select parts of your UI.
* `backgroundColor` - The underlying color of an app’s content.
* `errorColor` - The color used to indicate error status.
* `surfaceColor` - The color of surfaces such as cards, sheets, menus.
* `onBackgroundColor` - A color that passes accessibility guidelines for text/iconography when drawn on top of `backgroundColor`.
* `onPrimaryColor` - A color that passes accessibility guidelines for text/iconography when drawn on top of `primaryColor`.
* `onSecondaryColor` - A color that passes accessibility guidelines for text/iconography when drawn on top of `secondaryColor`.
* `onSurfaceColor` - A color that passes accessibility guidelines for text/iconography when drawn on top of `surfaceColor`.

**New Catalog Component**
![screen shot 2018-03-30 at 3 20 23 pm](https://user-images.githubusercontent.com/1753199/38150623-e3d0bc84-342d-11e8-8202-c2d5b87eeb11.png)

Closes https://github.com/material-components/material-components-ios/pull/3134
2018-04-03 15:55:57 -04:00
Rob Moore
e500aa6587 Bumped version number to 52.0.0. 2018-04-02 11:57:20 -04:00
featherless
bd67db7c4e
Add initial scaffolding for the Color scheme target. (#3171)
Creates a new Color target in the schemes sub-directory. Includes:

- A CocoaPods target.
- A BUILD file.
- A barebones readme.
- An empty umbrella header.

Pivotal story: https://www.pivotaltracker.com/story/show/156357414
2018-03-29 15:57:21 -04:00
Randall Li
61897e0ea9 breaking change adjustment 2018-03-29 01:21:16 -04:00
randallli
d57e12f4d2 Bumped version number to 49.1.0. 2018-03-27 11:51:14 -04:00
Mohammad Cazi
91a376ffe1 [TextFields] Adding font themer (#3096)
* Extracting Accessibility out of FeatureHighlightViewController to a mutator.
Tests added.
Example updated.

* Revert "Extracting Accessibility out of FeatureHighlightViewController to a mutator."

This reverts commit 0b5433ebf86366087b240c4dc4992a0603fa73e0.

* Adding Font themer to TextFields.

* extra lf.

* dealing with warnings.

* Fixing unit tests.

* commenting out low priority set up for bounds

* commenting out tests to see if tests would fail.

* tests are back, scale could have been zero.

* temp fix in case the fonts are zero.

* check for default inside setter.

* fix compliing mistakes.

* add documentation for the change.

* Example of dynamic size with different fonts.

* added support for dynamic type with custom fonts.

* fixed the top overlapping issue

* Replied to comment and fixed the issues.

* Adding Text Input property to InputController
Changing the value of mdc_adjustsFontForContentSizeCategory should not effect the actual controller fonts that are set by user but only the properties of the actual textfield. In order to do that I moved the resizing of fonts away from the properties of InputController and into update layout.

* Fixing the comment. Changing font scheme to not accept nullable controllers.

* change documentation.
2018-03-23 15:03:13 -04:00
Robert Moore
6f1418df2a [Chips] Create a FontThemer (#3128)
* [Chips] Create a FontThemer

Creating a FontThemer to use MDCFontScheme and apply it to an
MDCChipView.

* PR feedback: Don't fake font scheme

* Making component pointer nonnull.
2018-03-22 16:55:21 -04:00
randallli
13f10300f1 Major version bump 2018-03-20 15:21:42 -04:00
Randall Li
f0dfbbef6d Bumped version number to 48.1.0. 2018-03-20 02:37:42 -04:00
randallli
f1791d0a95 Merge branch 'release-candidate' into develop 2018-03-16 14:38:00 -04:00
Yarden Eitan
b782d2462a [Snackbar] Added Color and Font Themers (#3102)
* tests

* files

* update BUILD

* 2018
2018-03-16 13:18:45 -04:00
ianegordon
b22c8c2650
[Dialogs] Enable custom fonts on MDCAlertController (#3097)
* [Dialogs] Break AlertController into View and ViewController

* Enable Dynamic Type at the same time as custom fonts

* Feedback
2018-03-16 13:16:54 -04:00
Robert Moore
c82fafba3e [BottomAppBar] Add simple color themer (#3094)
* [BottomAppBar] Add simple color themer

Adding a color themer that can apply an id<MDCColorScheme> to the
BottomAppBar.  Uses the `primaryColor` as the bar's background color to
match the behavior of MDCNavigationBarColorThemer.

Closes #2279

* Adjusting documentation
2018-03-15 17:45:06 -04:00
randallli
dfcd334092 fixed version to 48.0.0 2018-03-15 15:53:54 -04:00
randallli
916547adfb Bumped version number to 47.1.0. 2018-03-15 13:43:04 -04:00
randallli
58b4bdb5a9 Merge branch 'release-candidate' into develop 2018-03-15 10:41:35 -04:00
Mohammad Cazi
2cc00f431e
[Tabs] Font/Color Scheme support for tab bar. (#3083)
* Extracting Accessibility out of FeatureHighlightViewController to a mutator.
Tests added.
Example updated.

* Revert "Extracting Accessibility out of FeatureHighlightViewController to a mutator."

This reverts commit 0b5433ebf86366087b240c4dc4992a0603fa73e0.

* added font scheme for tabBar

* Added tests for color and font themer.

* Revert "Added tests for color and font themer."

This reverts commit 72312af8a4cfbad82c02e2ca84923f6f8d86e27c.

* Revert "Revert "Added tests for color and font themer.""

This reverts commit 111d0f44795b1b95efd2b9d6fcb461e2603873bb.

* test files header.

* name changes and doc fix, Build file fixes.

* tabs: Handle the case of no optional color scheme implementation, test coverage added.
2018-03-14 13:02:20 -04:00
Mohammad Cazi
fa6a2f67d6 [FeatureHighlight] Accessibility title and body mutator added to fix UIAppearance issue (#3043)
* Extracting Accessibility out of FeatureHighlightViewController to a mutator.
Tests added.
Example updated.

* Added the new folder to pod setting.

* Splitting Title and Body Mutators, added tests for case of nil color.

* extra lf.

* Options is now a variable that can be given to the mutator.

* Fixing unit test issues, Updating all examples.

* Fixing Build file.

* Fixing build file.

* build file fix

* extra pace in the build file

* Revert "extra pace in the build file"

This reverts commit 18195fc893da2bcef7f8ef21f20b9f016b6c6011.

* extra space.

* cleaning up based on PR feedback.

* call super on setup and teardown.

* has to include to folder.

* build file indentation and variable name fixes.

* added color test.

* Document the test

* Made single method for accessibility.

* removing option input from public API.

* improving tests and documentation.

* putting this change in a separate PR.
2018-03-13 12:14:43 -04:00
randallli
9673a1fe03 version bump 47.0.0 2018-03-09 14:14:48 -05:00
Robert Moore
dcbe2e5cd7
[ButtonBar] Remove UIAppearance call in themer (#3020)
MDCButtonBarColorThemer was explicitly calling UIAppearance for MDCButtonBar when contained in an MDCNavigationBar to clear the backgroundColor property. This is "magic" behavior and should not be included in the themer. Instead, the navigation bar will force the buttonBar background colors to nil (clear). Since having ButtonBars is an implementation detail, clients should not expect them to have a different background color than the navigation bar.

Closes #2789
2018-03-06 09:25:54 -05:00
randallli
49cf4442a0 bump 2018-03-01 17:27:17 -05:00
Ian Gordon
ae514608a9 Bumped version number to 46.1.0. 2018-02-27 11:12:13 -05:00
Ian Gordon
3c8bf015f9 Bumped version number to 46.0.0. 2018-02-25 15:48:54 -05:00
Ian Gordon
4f940e8cb1 Revert "[BottomSheet] Convert to Material Motion. (#2400)"
This reverts commit c9ef0366c1525be0f5c384cf90703ab73dbcf3e3.
2018-02-25 13:10:33 -05:00
Ian Gordon
1fd6ed4fab Bumped version number to 45.0.0. 2018-02-13 15:31:52 -05:00
ianegordon
f88160007e
[Dialogs] Temporarily revert MMotion (#2921)
* Revert "[Dialogs] Migrate to Material Motion. (#2481)"

This reverts commit 211ca772ea0456b56e522c0c67bd44312ddfe4d1.

* Bump animator back to 2.5.0

* Pull in develop project file

* Remove test for MMotion
2018-02-13 14:27:24 -05:00
Randall Li
21d7fa6974 bump version 2018-02-09 14:07:09 -05:00
Ian Gordon
ac35b61d91 Update podspec dependencies 2018-02-01 19:28:16 -05:00
Ian Gordon
f82275d591 Bumped version number to 44.6.0. 2018-02-01 18:57:55 -05:00
Yarden Eitan
58f24b4f18 [Cards] Initial Implementation (#2894)
* [Cards] New API Header files (#2886)

* header files

* rename to MDCCardCollectionCell

* update for review

* update to review

* update to review

* [Cards] Full Implementation (#2892)

* cards core implementation

* updates to API and fixes from doc

* small fixes

* podspec, examples, and tests

* small fixes

* small fix

* small fix

* update inkView API and some small nits

* refactor API and code

* refactor API and code

* remove private header

* rename to MDCCardCollectionCell

* updates to api review

* update based on reviews

* fix tests

* [Cards] Initial Docs

* updates to encoding

* small fix

* pr update

* pr update

* pr update

* pr update

* pr update

* pr update

* pr update

* ink api update

* ink api update
2018-02-01 18:45:43 -05:00
Sam Morrison
31f908a10d [Chips] RTL support (#2863) 2018-01-25 09:34:24 -08:00
Ian Gordon
d44cffb445 Bumped version number to 44.5.0. 2018-01-22 12:27:48 -08:00
Ian Gordon
a6912063bc Bumped version number to 44.4.0. 2018-01-16 11:32:38 -05:00
ianegordon
c1fd27147a
Simplify podspec (#2828) 2018-01-12 10:09:54 -05:00
Ian Gordon
3f485eb59e Bumped version number to 44.3.0. 2018-01-11 01:28:42 -05:00
Ian Gordon
5ce221f554 Update podspec file 2018-01-11 01:18:23 -05:00
Ian Gordon
20faefcd0c Merge branch 'release-candidate' into develop 2018-01-11 00:10:56 -05:00
ianegordon
5a05ff9f9b
[Typography] Add FontThemer & FontScheme to FeatureHighlight (#2760)
* [Typography] Add FontThemer & FontScheme to FeatureHighlight

* Add Themer Example

* Remove TODO

* Cleanup / Feedback

* Migrate to new type hierarchy
2018-01-10 23:35:36 -05:00
Ian Gordon
cdebd6c4ae Bumped version number to 44.2.0. 2018-01-10 18:04:39 -05:00
Adrian Secord
f2ab451423 Bumped version number *down* to 44.1.0 because breaking change was reverted. 2018-01-08 10:36:55 -05:00
Adrian Secord
3dfa26fd0c Adding ShapeLibrary dep to Chips. 2018-01-08 10:29:23 -05:00
Adrian Secord
5e4968769a Bumped version number to 45.0.0. 2018-01-08 07:41:49 -05:00
Yarden Eitan
c29c4c5b5a remove themer from bottomnavbar (#2814) 2018-01-07 23:01:01 -05:00
Adrian Secord
294643fc0b
[Slider] Add appearance properties and enable UIAppearance. (#2796)
* Add Slider appearance properties and enable UIAppearance.

Adds `thumbRadius` and `thumbElevation` as UIAppearance properties.

Makes `color`, `disabledColor`, and `trackBackgroundColor` UIAppearance-compatible.

* Added unit tests for slider.

* Remove infeasible coding unit test for now.

* Line-length formatting.

* Rename and condense color tests, sort by order that they appear in the header.

* Rename tests and mark the thumb section.

* Replace `_thumbTrack.thumbRadius` usage with `self.thumbRadius`.

* Remove NSCoding-related helper, moved to another branch.

* Search-and-replace mixup.

* Line-length fixups.
2018-01-07 12:15:02 -05:00
Ian Gordon
bf75aa63d1 Bumped version number to 44.0.0. 2018-01-03 16:59:49 -05:00
Yarden Eitan
6df22d2cd6
Update MaterialComponents podspec to separate extensions from component. Breaking change, please see description when sending out a new release (#2748)
* [Catalog] Update catalog readme to reflect podspec filename change

* upate podspec

* update spec to extension

* more specific dependency

* added documentation
2018-01-02 16:51:58 -05:00
Jeff Verkoeyen
bd3eb3e391 Merge branch 'release-candidate' into develop 2017-12-20 13:18:52 -05:00
Robert Moore
da57f335e8
[BottomNavigation] Correct itemTitleFont behavior (#2736)
The `itemTitleFont` property was not defaulted to a non-nil value, breaking
the API header contract. It was also not being applied when the set of items
in the bar were changed.

Closes #2734
Closes #2735
2017-12-18 15:35:30 -05:00
Ian Gordon
69ee8b8520 Bumped version number to 43.1.0. 2017-12-14 16:26:28 -05:00