10 Commits

Author SHA1 Message Date
Randall Li
9201d9ec15 [Button] Removed example of stroked button (#3421)
* [Button] Removed example of stroked button

* removed unused variable
2018-04-26 11:27:06 -04:00
featherless
d4f727e16f
[Buttons] Add umbrella headers for all extension targets. (#3454)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-24 11:36:56 -04:00
Yarden Eitan
27eac8c05c
[Catalog] Implement API for setting app-wide theming (#3461)
Pivotal Story: https://www.pivotaltracker.com/story/show/156616695

This includes an implementation example in the ButtonTypicalUse example. In a separate PR will this be added to the rest of our examples.
2018-04-24 11:08:54 -04:00
Mohammad Cazi
238b6d7b06
Added ImageTintColor for theming FAB Button. (#3442)
https://github.com/material-components/material-components-ios/pull/3442
2018-04-23 14:53:06 -04:00
Mohammad Cazi
ece3c1457b [MDCButton] Added new API for coloring image tint color for state. (#3423)
Examples updated.
Unit Test Written.
![screen shot 2018-04-20 at 1 14 17 pm](https://user-images.githubusercontent.com/36271115/39064922-27f71680-449e-11e8-99fb-9fcd0e69d870.png)
![screen shot 2018-04-20 at 1 14 21 pm](https://user-images.githubusercontent.com/36271115/39064929-2be07ffc-449e-11e8-820b-7812cbb8d382.png)
2018-04-20 17:10:41 -04:00
Mohammad Cazi
82d19ae5d0 [Buttons] Create a separate class for MDCFloatingButton color themer. (#3429)
Added MDCFloatingButtonColorThemer to color theme a floating button.
examples and tests are updated.

![screen shot 2018-04-20 at 1 14 17 pm](https://user-images.githubusercontent.com/36271115/39068266-baf19f22-44a9-11e8-9eaa-fe58d74dd804.png)
2018-04-20 16:43:27 -04:00
Randall Li
3d1a7c2791
[Button] Contained: Changed colors for ink and disabled (#3419)
https://www.pivotaltracker.com/story/show/156403056

Before:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 43 46](https://user-images.githubusercontent.com/943565/39057651-c1bbcab6-4487-11e8-8d0d-86af1c1652cb.png)

After:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 40 23](https://user-images.githubusercontent.com/943565/39057492-5784a550-4487-11e8-98f6-14faf9c1cf8d.png)

Before Ink:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 43 49](https://user-images.githubusercontent.com/943565/39057657-c6153b60-4487-11e8-8058-377f053dd6a4.png)

After Ink:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 40 26](https://user-images.githubusercontent.com/943565/39057513-60806f04-4487-11e8-871c-f838e989f1f0.png)
2018-04-20 13:45:35 -04:00
Randall Li
1fa5bdf0b3
[Button] Changed text button disabled to do 37% opacity, Ink to use onSurface 16% (#3406)
Changed typical use example to use MDCTextButtonThemer.

https://www.pivotaltracker.com/story/show/156402729

before:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 12 12 57](https://user-images.githubusercontent.com/943565/39004311-096558cc-43cb-11e8-8338-5ab4deb7ed90.png)

after:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 14 00 25](https://user-images.githubusercontent.com/943565/39009598-0fc7c3e4-43da-11e8-9215-1184781ca759.png)

Ink screenshots:
before:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 12 13 58](https://user-images.githubusercontent.com/943565/39004389-334189ae-43cb-11e8-86d1-dd4b0e45e731.png)

after:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 14 00 27](https://user-images.githubusercontent.com/943565/39009606-14209cb8-43da-11e8-9e0b-d1610d45fed2.png)
2018-04-19 14:35:22 -04:00
Mohammad Cazi
c818048a1c
[MDCFloatingButton] Color Themer added. (#3381)
* MDCFloatingButton Color Themer added.
No support for icon color change inside color themer, this is left for user to handle for now.
Example added.
Pivotal: https://www.pivotaltracker.com/story/show/156725760

* Remove redundancy in tests and FabButtonColorThemer.

* Adding another example for color theming of a button.

* Setting secondary color for the test instead of primary since that's the value that's being used.

PR: https://github.com/material-components/material-components-ios/pull/3381
2018-04-18 15:32:53 -04:00
Yarden Eitan
67a68d3d3c
[Buttons] Added Shapes Support (#3368)
Pivotal Story: https://www.pivotaltracker.com/story/show/156168281

* Implementation of Shapes support in Buttons.
* Added example of using shapes on different styles of buttons (see screenshot and gif below).
* Exposed an initializer for MDCCurvedCornerTreatment to be able to use in the example.
* Exposed the color sublayer in MDCShapedShadowLayer to allow hierarchal reordering of sublayers for a shaped button to work with ink and shadow correctly.
* Updated unit tests.
2018-04-17 19:42:12 +03:00