Skip to content

Commit

Permalink
Remove out of date color theming docs (#9330)
Browse files Browse the repository at this point in the history
This PR removes out of date color theming docs. Forgotten cleanup related to #9061.
  • Loading branch information
andrewoverton committed Dec 23, 2019
1 parent 60e467f commit 25ee86e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 86 deletions.
47 changes: 4 additions & 43 deletions components/Tabs/README.md
Expand Up @@ -56,7 +56,6 @@ Tabs are bars of buttons used to navigate between groups of content.
- [Examples](#examples)
- [Creating a tab bar](#creating-a-tab-bar)
- [Extensions](#extensions)
- [Color Theming](#color-theming)
- [Typography Theming](#typography-theming)
- [Theming Extensions](#theming-extensions)
- [MDCTabBarView](#mdctabbarview)
Expand Down Expand Up @@ -213,48 +212,6 @@ tabBar.autoresizingMask =
<!-- Extracted from docs/color-theming.md -->
### Color Theming
You can theme a tab bar with your app's color scheme using the ColorThemer extension.
You must first add the Color Themer extension to your project:
```bash
pod 'MaterialComponents/Tabs+ColorThemer'
```

<!--<div class="material-code-render" markdown="1">-->
#### Swift
```swift
// Step 1: Import the ColorThemer extension
import MaterialComponents.MaterialTabs_ColorThemer

// Step 2: Create or get a color scheme
let colorScheme = MDCSemanticColorScheme()

// Step 3: Apply the color scheme to your component
// Primary variant
MDCTabBarColorThemer.applySemanticColorScheme(colorScheme, toTabs: component)
// Or surface variant
MDCTabBarColorThemer.applySurfaceVariant(withColorScheme: colorScheme, toTabs: component)
```

#### Objective-C

```objc
// Step 1: Import the ColorThemer extension
#import "MaterialTabs+ColorThemer.h"

// Step 2: Create or get a color scheme
id<MDCColorScheming> colorScheme = [[MDCSemanticColorScheme alloc] initWithDefaults:MDCColorSchemeDefaultsMaterial201804];

// Step 3: Apply the color scheme to your component
// Primary variant
[MDCTabBarColorThemer applySemanticColorScheme:colorScheme toTabs:component];
// Or surface variant
[MDCTabBarColorThemer applySurfaceVariantWithColorScheme:colorScheme toTabs:component];
```
<!--</div>-->
<!-- Extracted from docs/typography-theming.md -->
Expand All @@ -270,6 +227,7 @@ pod 'MaterialComponents/Tabs+TypographyThemer'
```
<!--<div class="material-code-render" markdown="1">-->
#### Swift

```swift
// Step 1: Import the TypographyThemer extension
import MaterialComponents.MaterialTabs_TypographyThemer
Expand Down Expand Up @@ -362,6 +320,7 @@ to configure your project to use `MDCTabBarView`.
<!--<div class="material-code-render" markdown="1">-->
#### Swift
```swift
import MaterialComponentsBeta.MaterialTabs_TabBarView
```
Expand All @@ -377,6 +336,7 @@ import MaterialComponentsBeta.MaterialTabs_TabBarView

<!--<div class="material-code-render" markdown="1">-->
#### Swift

```swift
let tabBarView = MDCTabBarView()
addSubview(tabBarView)
Expand Down Expand Up @@ -464,6 +424,7 @@ subclass conforming to the `MDCTabBarItemCustomViewing` protocol is provided as
<!--<div class="material-code-render" markdown="1">-->
##### Swift
```swift
let customView = MyCustomTabView()
let customItem = MDCTabBarItem()
Expand Down
43 changes: 0 additions & 43 deletions components/Tabs/docs/color-theming.md

This file was deleted.

0 comments on commit 25ee86e

Please sign in to comment.