81 Commits

Author SHA1 Message Date
ianegordon
5a05ff9f9b
[Typography] Add FontThemer & FontScheme to FeatureHighlight (#2760)
* [Typography] Add FontThemer & FontScheme to FeatureHighlight

* Add Themer Example

* Remove TODO

* Cleanup / Feedback

* Migrate to new type hierarchy
2018-01-10 23:35:36 -05:00
ianegordon
49de50edae Consolidate installation requirements in the main README (#2809) 2018-01-05 13:50:38 -05:00
Yarden Eitan
6df22d2cd6
Update MaterialComponents podspec to separate extensions from component. Breaking change, please see description when sending out a new release (#2748)
* [Catalog] Update catalog readme to reflect podspec filename change

* upate podspec

* update spec to extension

* more specific dependency

* added documentation
2018-01-02 16:51:58 -05:00
ianegordon
a903493eee
[FeatureHighlight] Fix crash in Dynamic Type handling (#2742) 2017-12-18 13:59:13 -05:00
Yarden Eitan
29d760c7d6
Added isPresentable to catalog files, ported over ZShadow to dragons. (#2726) 2017-12-15 12:20:35 -05:00
ianegordon
fcf9712d32
[FeatureHighlight] Add custom font support (#2701)
* [FeatureHighlight] Add custom fonts

* Utilize MDCTypography if custom. Add sample.

* Remove extra method

* [FeatureHighlight] Add custom font tests

* Scale MDCTypography defaults if dynamic type is enabled

* Feedback
2017-12-14 08:46:56 -05:00
ianegordon
872380d0e9
Move Dynamic Type support to the FeatureHighlightView (#2653) 2017-12-08 23:44:07 -05:00
Robert Moore
89b098e308 [FeatureHighlight] Add BUILD file and no-op test (#2648)
* [FeatureHighlight] Add BUILD file and no-op test

A simple no-op test that just ensures that Bazel is building/running some of
the code in Feature Highlight.

* Fixing test name

* Removing unused package

* Fixing copyright
2017-12-08 18:13:32 -05:00
Randall Li
b1ec22207f
Fixed float conversion build errors (#2602)
* Fixed float conversion build errors
Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')

Found by turning on warnings via: https://github.com/material-components/material-components-ios/pull/2480

* More Fixed float conversion build errors
Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')

Found by turning on warnings via: https://github.com/material-components/material-components-ios/pull/2480
2017-12-06 15:57:04 -05:00
featherless
b9404ded10
Revert "Add compile time flag for import style (#2562)" (#2612)
This reverts commit 6791dc4993d3a0ffa11735eeeef0583102621d52.
2017-12-06 11:22:17 -05:00
Louis Romero
6791dc4993
Add compile time flag for import style (#2562)
Closes #2550
2017-12-04 10:06:31 -08:00
Junius Gunaratne
7dc9470943 [Themers] Add nullability to themers (#2551)
* Add nullability to themers

* Wrap optional
2017-12-01 17:31:41 -05:00
featherless
52f0c766b0 [FeatureHighlight] Minor fix of comment block notation. (#2503) 2017-11-22 10:30:44 -05:00
featherless
d1b31cab6a Automated header standardization by the kokoro script. (#2472)
This change was generated by running and canceling `./.kokoro`. This enforces our use of framework-style imports throughout the project.
2017-11-17 19:56:24 -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
Will Larche
d9e0811a81 [Themer] Updating the protocol generic syntax. (#2440) 2017-11-16 07:59:18 -05:00
Will Larche
3fc78fd868 [TextFields] Adding a doc: menu for styles (#2064)
* [TextFields] Beginning to update the docs to show the new controller styles.

* [TextFields] Correcting the name of a file.

* [TextFields] Adding content to controller styles doc.

* [TextFields] Images for the text field styles doc.

* [TextFields] Renaming styling doc.

* [TextFields] Moving doc images.

* [TextFields] Updating image ref paths.

* [TextFields] Text clarity in doc.

* [TextFields] Updated photo.

* [TextFields] Nits of grammar.

* [TextFields] Spelling correction.
2017-09-28 11:25:41 -04:00
Robert Moore
7f4c4e18c5 [Bundles] Use explicit class in bundleForClass (#1942)
Using `[self class]` when loading a bundle can result in missed resources when
a method is called from a subclass.  To prevent these errors, components should
be explicit about which class is being used to load bundles.

References #1941 (Components)
2017-09-05 14:17:54 -04:00
Sam Morrison
720c2e360e [FeatureHighlight] Fix broken properties (#1938) 2017-09-01 14:16:18 -04:00
Robert Moore
8940d77d6d [Catalog] Verify all examples provide CatalogByConvention methods (#1911)
All examples now have at least the required `+catalogBreadcrumbs` and `+catalogIsPrimaryDemo`.  All examples in the same breadcrumbs path have only one primary demo.  There should be only one `-catalogDescription` attached to the primary demo.

Closes #1897
2017-08-31 08:46:10 -04:00
Robert Moore
5498005f65 [Catalog] Enabling all "unused" warnings (#1875)
Re-enabling warnings for unused parameters. Turning on every other
unused warning I could find.

Closes #1874
2017-08-29 17:57:41 -04:00
Robert Moore
7c8778ed75 [FeatureHighlight] Shown views can receive taps (#1889)
Shown views with gesture recognizers or shown buttons with actions
should be able to receive taps while Feature Highlight is active.

Closes #1888
2017-08-24 18:06:09 -04:00
Sam Morrison
add558db3e [FeatureHighlight] Dynamic type support (#1884)
* Use material font styles instead of explicitly referencing fonts

* Observe UIContentSizeCategoryDidChangeNotification
2017-08-24 11:45:07 -04:00
Sam Morrison
65f1571f5d [FeatureHighlight] Correctly load view (#1883) 2017-08-24 09:40:32 -04:00
Sam Morrison
f73704593b [FeatureHighlight] Improve text layout (#1867)
* Add 1pt of line spacing to feature highlight text

* Add padding between baselines of title and body
2017-08-22 17:06:24 -04:00
InbarItayG
b1c2bef67d [FeatureHighlight] Adjust Dismiss Drag Proportions To Feel More Natural #1754 (#1799) 2017-08-14 16:13:53 -04:00
Adrian Secord
206b0bf39b Added missing license stanzas. (#1768) 2017-08-10 17:16:33 -04:00
Sam Morrison
6281b33d66 [FeatureHighlight] Fix gesture recognizers (#1749)
* [FeatureHighlight] Fix tap recognition

* Revert cancellation addition
2017-08-08 18:20:41 -04:00
Robert Moore
e03ad370c6 [Math] Align frames to pixel boundaries (#1730)
Adding a new function to realign a CGRect (frame) to pixel boundaries
based on the screen scale. After a review of the catalog, I'm updating
the areas where I found misaligned frames.

Closes #1723
2017-08-07 16:46:32 -04:00
Sam Morrison
cfbb1d9862 [FeatureHighlight] Correctly handle ended and cancelled touches (#1684) 2017-07-24 21:30:27 -04:00
Sam Morrison
f466588e4f [Feature Highlight] Swipe to dismiss (#1636)
* Add new Dismiss gesture recognizer to allow swiping away feature highlights

* Tap outside the feature highlight to dismiss

* Formatting and cleanup

* Fix unused var warnings

* Correctly cancel animation when gesture recognizer gets cancelled

* Fade out text when starting dismiss gesture

* Formatting

* Ignore multiple touches

* Remove debug state logging

* Fade text in/out during dismissal gesture

* Address comments

* Prevent floating point conversion warnings

* MDCPow / MDCSqrt

* Add accessibilityPerformEscape to feature highlight
2017-07-17 17:59:03 -04:00
Adrian Secord
0abca36dbb [Docs] Replaced internal site references with public equivalents. (#1616)
* Replaced internal site references with public equivalents.

* Updated spec link to material.io.
2017-07-10 16:35:35 -04: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
Justin Shephard
7c12a5ef53 Revert "Revert "Fix imports to use umbrella imports (#1529)""
This reverts commit 485c37331a133978bd08a9c2f9b7c7f2f6f14ffe.
2017-06-22 10:27:26 -04:00
Justin Shephard
485c37331a Revert "Fix imports to use umbrella imports (#1529)"
This reverts commit 266a716f6096857dc6970e031e23c2c85a6e4f83.
2017-06-22 10:19:44 -04:00
Sam Morrison
3f327260d9 Import UIKit (#1547) 2017-06-21 15:51:07 -04:00
Sam Morrison
0a102db99b [Feature Highlight] Rotation fixes and animation improvement (#1505)
* [Feature Highlight] Force relayout on rotation

* Replace KVO of highlightedView frame with relayout upon transitioning size class

* Update feature highlight outer radius after rotation

* Remove commented line
2017-06-19 17:53:33 -04:00
Randall Li
266a716f60 Fix imports to use umbrella imports (#1529)
* [ColorThemes] Use umbrella header instead of MDCColorScheme

* [Application] Use umbrella header instead of class header

* [Button] use umbrella header in private header

* [Typography] use umbrella header in private header

* icons using umbrella header in individual icon class

* [Icons] added header to umbrella header

* [collection] umbrella header instead of class header in test

* [Collections] use umbrella header in private header

* [ActivityIndicator] use umbrella header in private header

* [ButtonBar] use umbrella header in private header

* [Dialog] use umbrella header in private header

* [featurehighlight] use umbrella header in private header

* [snackbar] use umbrella header in private header

* [textFields] use umbrella header in private header

* [thumbtrack] use umbrella header in private header

* [Overlay] use umbrella header in private header

also removed spurious ’s’ at end of MaterialOverlay.h file

* [slider] use umbrella header in private header

* [buttonBar] use umbrella header in private header

* [slider] use umbrella header in test

* [Overlay] fixed overlay reference to use umbrella header
2017-06-19 15:57:48 -04:00
Sam Morrison
a43472d249 [Feature Highlight] Expose title and body color properties (#1496)
* [Feature Highlight] Expose title and body color properties

* Fix feature highlight warnings

* Feature Highlight public header nullability
2017-06-12 17:11:13 -04:00
Sam Morrison
984135f874 [Feature Highlight] Restore innerHighlightColor setter and fix null_resettable colors (#1485) 2017-06-05 14:24:56 -04:00
Junius Gunaratne
71d441a065 Component themers and usage example for catalog (#1443)
Adding color scheme component themers.
2017-05-30 17:28:03 -04:00
Martin Petrov
ec1feb81a5 [MDCPalette] Use class properties (#1470)
* Replacing methods with class properties.

* Updating docs to reflect new Swift call style.

* Updating examples.

* Updating ObjC examples to use dot syntax
2017-05-30 08:20:00 -04:00
Randall Li
1c7ca93142 ![ColorThemer] Reorganize source to create separate targets for each color themer. (#1466)
* reorganize the color themer classes so that they are separate targets for each mutator.

* moved source files out of MaterialThemes.

* moved theme examples into their main component locations out of themer’s.

* renamed core subspec to 'Component'
2017-05-26 17:17:55 -04:00
Randall Li
e85c5a8e45 white space nit 2017-05-25 15:46:10 -04:00
randallli
581cf6cd25 added missing import of UIKit 2017-05-25 12:09:55 -04:00
Scott Hyndman
eed028eacb [Docs] Adds API documentation roots and tidies up here and there. (#1425)
* [Docs] Marks component files as API documentation roots.

Used by the site generator to determine where to build API docs. I
marked everything built by the previous version.

* [Docs] Adds a prefix to all Material guidelines links.

* [Docs] Adds API doc links to some components.
2017-05-12 16:03:56 -04:00
Junius Gunaratne
6d8f757609 Keep feature highlight view implementation in private with limited public properties (#1422)
* Update feature highlight

* Move feature highlight view implementation details into private.

* Move feature highlight view implementation into private

* Move feature highlight properties into private. Fix space formatting.

* Fix formatting

* Clean up comments, formatting.

* Change property order

* Use year of when file was first created.

* Add feature highlight view to umbrella header
2017-05-11 14:18:18 -04:00
Junius Gunaratne
127b60710e Revert "Make MDCFeatureHighlightView public and prepare color properties for UIAppearance (#1410)" (#1419)
This reverts commit 5fa6b89e612acc7c659aaba689445e63d641ca10.
2017-05-10 14:25:32 -04:00
Junius Gunaratne
5fa6b89e61 Make MDCFeatureHighlightView public and prepare color properties for UIAppearance (#1410)
* Make MDCFeatureHighlightView public and update color setters for use with UIAppearance

* Change featureHighlightView to nonnull, fix formatting

* Update comment
2017-05-09 16:30:30 -04:00
Scott Hyndman
1571a1b9ee [Docs] Nests components in the navigation as spec'd. (#1404)
Also took the opportunity to remove an unneeded liquid style
application.
2017-05-09 11:49:44 -04:00