19 Commits

Author SHA1 Message Date
Yarden Eitan
7f7bc36202
[Catalog] Expose colorScheme + typographyScheme properties for all examples to use app wide theming (#3478)
Made colorScheme and typographyScheme properties in the class interfaces for all our examples.
Moved theming away from example inits and into viewDidLoad
Small update for slider example to allow it to grab the theming properly.
Related Pivotal: https://www.pivotaltracker.com/story/show/156616695
2018-04-25 15:15:17 -04:00
featherless
e3dd4c12ce
[Dialogs] Add umbrella headers for all extension targets. (#3465)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-24 21:21:33 -04:00
featherless
4f1c9fa382
[Dialogs] Implement a semantic color themer. (#3313)
Pivotal story: https://www.pivotaltracker.com/story/show/156169818

Before: 

![simulator screen shot - iphone 8 plus - 2018-04-10 at 13 08 56](https://user-images.githubusercontent.com/45670/38572206-7cdb9382-3cc0-11e8-96ba-14199617596a.png)

After: 

![simulator screen shot - iphone 8 plus - 2018-04-10 at 13 07 54](https://user-images.githubusercontent.com/45670/38572202-79a6a102-3cc0-11e8-9812-8a3c00139ad6.png)
2018-04-12 20:17:53 -04:00
Mohammad Cazi
7716981f1f
[Dialogs] Implement MDCAlertController typography themer. (#3302)
* Implementing MDCAlertTypographyThemer.

* fixed the test.

* Implementing MDCAlertTypographyThemer.

* fixed the test.

* Dialogs: Example for typography added.
2018-04-09 16:08:56 -04:00
ianegordon
b22c8c2650
[Dialogs] Enable custom fonts on MDCAlertController (#3097)
* [Dialogs] Break AlertController into View and ViewController

* Enable Dynamic Type at the same time as custom fonts

* Feedback
2018-03-16 13:16:54 -04:00
Randall Li
2f29f00d86 Fixed some compiler warnings (#2426)
* Added warnings to examples.

* fixed some warnings

* using button sender parameter.

* use button sender in example

* use button sender in example

* removed sender from methods that don’t use it.

* removed sender from methods that don’t use it.

* use button sender in example

* use button sender in example

* use button sender in example

* use button sender in example

* Fixed init of header configurator to use passed in parameter

* removed unused API

* use button sender in example

* Revert "Added warnings to examples."

This reverts commit 91f0480f86cb609c47b00f1346f82de67c31c4e9.

* fixed example: Using the view controllers navigationItem rather than creating a new one.

* removed finished checks from animation blocks in examples.

* reverted id sender checks

* revert id sender check for Flexible header UINavigationBar

* revert clug

* revert clug

* addressing nits

* removed sender check for FeatureHighlightTypicalUseView

* more nits
2017-11-22 10:51:55 -05:00
Yurii Samsoniuk
2a96682230 Replace unnecessary imports with forward declarations (#2429)
* [Themes] Remove unnecessary imports.

* [TextFields] Remove unnecessary imports.

* [Typography] Do not use an umbrella header inside of a component.

* [Snackbar] Do not use self umbrella header.

* [ActivityIndicator] Do not use self umbrella header.

* [AppBar] Use umbrella headers.

* [AppBar] Remove self import header.

* [ButtonBar] Removed self umbrella header imports.

* [Buttons] Removed self umbrella header imports.

* [Collections] Update imports.

* [Dialogs] Moved import into an m file.

* [Collections] Fixed imports.

* [FeatureHighlight] Removed self umbrealla imports.

* [HeaderStackView] Reordered imports.

* [Ink] Replaced imports with forward declarations.

* [Slider] Replaced self umbrella import use.

* [Snackbar] Removed self umbrella header import.

* [Tabs] Changed math import. Replaced self umbrella header import.

* [Icons] Removed unnecessary imports.

* [Overlay] Replaced umbrella header import.

* [ShapeLibrary] Replace Shapes imports with an umbrella header.

* [Shapes] Replaced imports with forward declarations.

* [AppBar] Replace import with a forward declaration.

* [Examples] Updated imports.

* Fixed conflicting imports

* Added space between different import categories
2017-11-16 18:25:06 -05:00
Adrian Secord
479f7b1141 Remove trailing whitespace everywhere. (#2168) 2017-10-13 11:33:35 -04:00
ruizhao
bd55e33bee [Dialog] Fix alert controller, title and message take half screen even they are nil (#1931)
* [Dialog] Fix alert controller, title and message take half screen even they are nil

When actionScrollView's height exceed the container view's height. If the contentScrollView's height is very small or 0, we are leaving a huge white spaces for contentScrollView.

* Add an example demostrating the new action and body sizing

* Fix formatting, enable Dynamic Type
2017-09-08 12:01:46 -04:00
Junius Gunaratne
0cb6ce6d5f Adding MDC themes (#1401)
* Adding MDC themes

* Update feature highlight view color properties

* no message

* Remove loadView

* Move set default color to init

* Dedup color setters

* Remove redundant color sets

* Sync with latest commits

* Update theme example title

* Adding alert theming.

* Add feature highlight private changes

* Remove alert example

* Update themer examples

* Add documentation

* Adding docs

* Formatting and comment updates.

* Create examples of changing theme colors.

* Formatting.

* Formatting
2017-05-12 16:38:49 -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
74e6232777 [Dialogs] Fix AlertController rotation layout (#1306)
No longer uses outdated cached bounds values.
2017-04-05 16:04:41 -04:00
Will Larche
8c5350de31 [All] Formatting. (#1269) 2017-03-22 12:18:15 -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
Adrian Secord
e93a16ca02 Capitalize "Material" in documentation (#1014)
* s/material design/Material Design/g

* s/material components/Material Components/g

* s/material\([ \t\n]\)/Material\1/g

* s/aterial design/aterial Design/g
2016-12-13 08:06:55 -05:00
Ian Gordon
1aaa85381d [MDCButton] Add UI_APPEARANCE_SELECTOR to customTextColor.
Summary:
This allows clients to customize the color of the text in the buttons with the appearance proxy.

We should add UIAppearance support to all of our visual elements, but this specific change addresses a need from an internal client.

Test Plan:
Run MDCCatalog
Dialogs-Alert Controller-Show Alert

Note purple button text.
Note other buttons do not have purple text.

Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Subscribers: ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1484
2016-08-17 13:33:09 -04:00
Adrian Secord
8c3af252be Adding AUTHORS and removing CONTRIBUTORS.txt.
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...

Summary:

We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.

Changed copyright statement to include non-Google authors.

Command run:

find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods  \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Added non-source files.

Command run:

grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Reviewers: featherless, O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1415
2016-08-08 08:16:37 -07: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