7 Commits

Author SHA1 Message Date
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
Junius Gunaratne
2873e798f2 [Themes] Add ability to change catalog theme (#1477)
Discussed merge with Ian offline. Issues with Travis CI may be resolved once the PR is merged.

* Add color to tiles.

* Add theming to catalog

* Update text field tile.

* Implementation method signatures should match those in header.

* Update MDCDrawFunc typedef

* Pass color scheme through NSNotification

* Add component theming

* Add tabbar themer

* Update tab example to use UIAppearance

* Theme sliders based on UIAppearance proxy

* Allow any class conforming to MDCColorScheme

* Override navigation bar color theme for imagery example.

* Update AppBar and ButtonBar color theming

* Update button bar themer comment

* Update button theming

* Remove theme imports where not necessary.

* Fix case of private
2017-06-23 11:36:48 -04:00
Scott Hyndman
4a011e75a5 [Docs] Docstravaganza (#1330)
* [Docs] Adds platform configuration for the doc site.

* [Docs] Adds path metadata for documentation site.

This field is used to determine where the file will appear in the
doc site.

* [Docs] Updates Material guideline links to latest URL.

material.google.com -> material.io/guidelines

* [Docs] Introduces a separate component index for the docsite.

* [Docs] Changes the directory used for site generation.

* [Docs] Moves documentation-site-only Markdown into its own directory.

* [Docs] Changes material.io links to use https.

* [Docs] Renames the howto and contributing docsite sections to docs.

* [Docs] Adds a navTitle field to the collection editing/styling pages.

* [Docs] Changes the FAQ heading to be one size bigger.

* [Docs] Changes the tutorial title.

* [Docs] Adds icons to three more components.

* [Docs] Introduces a root component directory called /catalog/.

* [Docs] Adds an icon to the AnimationTiming component.

* [Docs] Adds an icon for the typography component.

* [Docs] Reformats the docsite index.
2017-05-01 17:27:38 -04:00
Max Luzuriaga
eebab2557d [Slider] ThumbHollowAtStart property better named with obj-c conventions
Summary: Leaves setter as `slider.thumbHollowAtStart` but makes getter `slider.isThumbHollowAtStart`.

Reviewers: O1 Material components iOS, iangordon

Reviewed By: O1 Material components iOS, iangordon

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1525
2016-08-24 12:01:36 -04:00
Max Luzuriaga
14e1943f44 [Slider] Rename thumbIsHollowAtStart to isThumbHollowAtStart
Summary: Per Junius' suggestion, this name fits better with the convention of BOOL var names.

Reviewers: O1 Material components iOS, randallli, junius

Reviewed By: O1 Material components iOS, randallli, junius

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1520
2016-08-24 10:12:51 -04:00
Max Luzuriaga
19ab4675a6 [Slider] Property for whether or not thumb is hollow at minimum value
Summary:
Adds `thumbIsHollowAtStart` property to MDCSlider, to support usages where you don't need the thumb view to be hollow when `slider.value == slider.minimumValue`, i.e. when the slider is used as a scrubber in an audio or video file.

Also adds an example of this property being `NO` to the primary slider example view controller.

{F6417}

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1518
2016-08-23 15:46:01 -04:00
Max Luzuriaga
72088f48cb [Slider] Expanded slider demo within a collection view.
Summary:
Switched the default demo for MDCSlider to a new view controller that displays several different types of sliders in a collection view format. Serves as an example of how to use a slider in this context, as collection views are often used for settings screens where sliders are most likely to appear.

Also shows off new options for the slider, such as displaying the discrete value label or not, and setting an anchor value to draw the track from.

{F6385}

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1486
2016-08-23 15:21:00 -04:00