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.


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.

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:

After:

Before Ink:

After Ink:

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:

after:

Ink screenshots:
before:

after:

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