16 Commits

Author SHA1 Message Date
Galia Kaufman
d220234cef [Dialogs] Add title icon examples
Adding examples for the titleIcon APIs.

PiperOrigin-RevId: 319077424
2020-06-30 12:41:24 -07:00
Bryan Oltman
0ca3a4fe64
Update DialogWithInputFieldExample storyboard to reference correct class (#7524) 2019-06-12 13:30:23 -04:00
Wenyu Zhang
6090cd6dad
[MDC Dialogs] add an example for custom dialog view controller themed by theming extension (#6601) 2019-02-15 16:03:36 -05:00
Galia Kaufman
3f3e5b0efc
[Dialogs] Renaming example view controllers (#5932)
Adding "Example" to names of all example view controllers of Dialogs - in files/class names.
2018-12-06 15:55:51 -05:00
Galia Kaufman
dc184ba549
[Dialogs] Customize alert title icon (#5167)
Adding a title icon property to MDCAlertController.

The title icon is an image that is shown above the dialog title, and is automatically aligned with the title, supporting all NSTextAlignment alignment options (center, natural, left, right, etc).

Includes tests and examples using the new property.

Issue: #5174
Issue: Update MDC API to customize MDCAlertController title🐛
2018-09-27 14:32:57 -04:00
featherless
d406f0fa7c [Dialogs] Replace MDCRaisedButton with themer APIs in DialogWithPreferredContentSizeViewController. (#3495)
* [Dialogs] Replace MDCRaisedButton with themer APIs in DialogWithPreferredContentSizeViewController.

Pivotal story: https://www.pivotaltracker.com/story/show/157096622

* Use global theming.

* Proper theming.
2018-04-26 11:12:21 -04:00
featherless
1da207b483 [Dialogs] Remove unused DialogsTypicalUseViewController.storyboard. (#3496) 2018-04-25 17:12:53 -04:00
Alastair Tse
4a46c8c19e Monochromatic sweep of all catalog components (#1370)
* 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
2017-05-05 16:16:47 -04:00
ianegordon
9f92b161db [Dialogs] Add Dynamic Type support to Alert controller (#1213)
* [Button] Add Dynamic Type support

* Cleanup & documentation

* added comment about default value.

* Add basic unit testing

* Use proper constant for comparing FP in unit test

* Remove extra WS

* Cleanup unit tests

* [Dialogs] Add Dynamic Type support to Alert Controller

* Add clarifying documentation.
2017-02-27 15:36:52 -05:00
ianegordon
71d1886636 [Dialogs] Add a non-dismissing example. (#1184)
* [Dialogs] Add a non-dismissing example.

* Fix indent.
2017-02-06 15:20:02 -05:00
ianegordon
2cbfa20b1b [Catalog] Update dialog storyboard to rotate properly (#1031) 2016-12-13 19:38:03 -05:00
Ian Gordon
7f596f6f2a [Catalog] Restore Xcode 7 compatibility
Summary: Save in backwards compatibility-mode so this is still usable on Xcode 7.

Reviewers: O1 Material components iOS, shepj

Reviewed By: O1 Material components iOS, shepj

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1673
2016-09-27 17:23:47 -04:00
Ian Gordon
0e3b8b2a35 [Dialogs] Add disable background dismiss property
Summary:
This add the ability to disable dialog dismiss on dimmed background view.

Closes MDC-797.

Add documentation

Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Subscribers: samnm

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1667
2016-09-27 15:07:10 -04:00
Ian Gordon
26719621fc [Catalog] Add a dialog with an input field for keyboard testing
Reviewers: randallli, O1 Material components iOS, ajsecord

Reviewed By: randallli, O1 Material components iOS, ajsecord

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1361
2016-08-08 18:38:27 -04:00
Ian Gordon
1fe4ac3f64 [Dialogs] Add Alert Controller
Summary: This is the initial import of the material spec'd alert controller.

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1258
2016-07-25 17:12:33 -04:00
Ian Gordon
3742dd4849 [Dialogs] Initial Import
Summary:
Initial import of our modal presentation controller and transition controller.

The interfaces have been previously reviewed in our API Review process.

This will land on the branch feature-dialog.

Test Plan: Example added to catalog.

Reviewers: randallli, cjcox, ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Subscribers: samnm, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1066
2016-07-14 13:57:15 -04:00