* [Buttons] Remove .largeIcon shape from FloatingButton (#2513)
The LargeIcon shape is not required, since the same behavior (support
for 36-point images) can be achieved by setting the contentEdgeInsets to
.zero.
Also updates one of the button examples to use a 36-point icon.
* [Buttons] Add extended FAB layout code (#2528)
Creating (internal for now) the required properties and layout code to support
the extended FAB. Unit tests to confirm the behavior and some minor
adjustments to existing values like default contentEdgeInsets values.
Implements #2495
* [Buttons] Expose Extended FAB properties (#2543)
Making the new properties public and also migrating away from simple
property setters to the new forShape:inMode: setters required for
UIAppearance support.
* minimumSize
* maximumSize
* contentEdgeInsets
* hitAreaInsets
Implements #2495
* [Buttons] Add basic Floating Button example (#2554)
Includes automatic adjustment of extended/normal layout depending on size
classes.
Demonstrates #2495
* [Buttons] Update README for Extended FAB (#2561)
The README includes usage examples for the FAB. Adding a section to
demonstrate how to configure the FAB in its different shapes and modes.
Documents #2495
* Update ButtonsStoryboardAndProgrammatic example with more distinct colors and comment explaining use
* Fix MDCButton for loading colors from storyboard without clobbering values
* [Buttons] Unbounded ink aligns to content insets
Unbounded ink should be centered on the content of buttons, but bounded
ink should remain aligned with the bounds of the button.
* Changing Ink behavior for unbounded ink
* Modified Content Rect Insets example in the Catalog
Closes#1669
* Making example buttons have same width
The `contentEdgeInsets` value of an MDCButton causes the `_inkView` to
realign to match the `contentRect`. This results in a ripple/highlight
that does not match the position of the button on-screen (doesn't align
with the background).
This commit removes the re-alignment code, so `_inkView` will remain
aligned with the rest of the button's view.
* Replace MDC all icons
* Update border
* Replace MDCActionExtension icon with new logo
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* WIP: Updating TabBar example to use black/green theme.
* WIP: Monochoroming all examples.
* Switch MDC Catalog to a black and white theme (#1355)
* Replace MDC all icons
* Update border
* Replace MDCActionExtension icon with new logo
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* Fix floats
* Make Catalog greyscale to match Material’s style.
* More black and whiting
* WIP: Snackbar and global style
* Simplify snack bar examples.
* Page control
* ClangFormat changes.
* Added swiftlint to scripts/format_all.`
* Fix scripts/lint_all to work from any directory.
* Fixed swiftlint invocation.
* Remove the checks for force casting (! operator).
* Some fixes.
* More Swift fixes.
* Center the Storyboard button demo.
This uses an outer container to set up a view which is 50% the screen width (to allow for the other half of the button demo), and then an inner container to vertically and horizontally center the buttons.
* Center the buttons added programatically.
* [MDCInkView] cancelAllAnimationsAnimated should support disabling animation
* [MDCProgressView] Allow completion block to be modified if setHidden:animated:completion is called sequentially
* Call completion block immediately rather than storing as a property.
* Add nil check for completion block
* [Shrine] Update to Swift 3
* [AppBar] Add Objective C AppBar storyboard example
* Add right button bar item to AppBar swift demo
* Add plus shape icon to FAB
* Move plus symbol to example code
* Add plus icon asset, move to supplemental
* Remove unused methods
* Undo change to print.
* Move plus CAShapeLayer code into its own method
* Remove plus path method
* Use supplemental method to get plus symbol CAShapeLayer
Summary:
This is slightly hacky, as MDCButton should likely be an abstract
base class, but we can do that as it inherits from UIButton.
Reviewers: #mdc_ios_owners, randallli
Reviewed By: #mdc_ios_owners, randallli
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D250
Summary:
We were not setting the backgroundColor to nil for FlatButtons
initialized from storyboards. We do now.
Reviewers: #mdc_ios_owners, ajsecord
Reviewed By: #mdc_ios_owners, ajsecord
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D247