8 Commits

Author SHA1 Message Date
Galia Kaufman
d55d7ab9f2
[Dialogs] Theming action buttons in DialogThemer (#5416)
Adding semantic emphasis to Dialog actions which allows conditional theming of buttons. The MDCDailogScheme now has a button scheme which can be used to theme buttons according to their action's assigned emphasis.
Issue: b/117608629
Design Review document (go/gmdc-ios-dialogs-design-doc).
2018-10-22 12:31:03 -04:00
Galia Kaufman
0beee09b20
[Dialogs] add scrimColor to MDCAlertController (#5362)
Adding scrimColor property to MDCAlertController, which controls the background color when the alert is presented by a MDCDialogPresentationController. 
Issues: b/116845327, b/117173678.
2018-10-10 10:44:04 -04:00
Galia Kaufman
1137a62d92
[Dialogs] Customizing scrim color in presentation controller (#5283)
Adding the API to customize the color of MDCAlertController's background scrim, and to apply the color during theming. Also includes tests & an example.
Issue: #5279
Issue: b/116845327
2018-10-02 04:53:32 -04:00
Galia Kaufman
d065e4536f
[Dialogs] Customize tint color of alert title icon (#5159)
Updating AlertController API to customize the tintColor of the alert's titleIcon. Includes tests and examples.
issue: #5174
issue: Update MDC API to customize MDCAlertController title🐛
2018-09-28 06:31:31 -04: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
Randall Li
2d2c0c8d4d [Dialog/alert] Corrected example import of dialog from scheme 2018-09-26 12:04:44 -04:00
Randall Li
455fd70155 [Dialog/alert] Added import of collections 2018-09-26 10:34:34 -04:00
Galia Kaufman
80145df58e
[Dialogs] Customize alert title alignment (#5164)
Set title alignment of MDCAlertController with NSTextAlignment options.
Issue: #5174
Issue: Update MDC API to customize MDCAlertController title🐛
2018-09-24 16:12:28 -04:00