Skip to content

Commit

Permalink
[AppBar] Change imagery example to use design sanctioned background
Browse files Browse the repository at this point in the history
Summary: Screenshot http://codereview.cc/M15

Reviewers: featherless, ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D522
  • Loading branch information
Junius Gunaratne committed Apr 7, 2016
1 parent ae9d5ae commit e3fee6c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions catalog/MDCCatalog/Base.lproj/LaunchScreen.storyboard
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand Down
2 changes: 1 addition & 1 deletion components/AppBar/examples/AppBarImageryExample.m
Expand Up @@ -65,7 +65,7 @@ - (UIStatusBarStyle)preferredStatusBarStyle {
// Typical image loading.
- (UIImage *)headerBackgroundImage {
NSBundle *bundle = [NSBundle bundleForClass:[self class]];
NSString *imagePath = [bundle pathForResource:@"dinosaur" ofType:@"jpg"];
NSString *imagePath = [bundle pathForResource:@"mdc_theme" ofType:@"png"];
return [UIImage imageWithContentsOfFile:imagePath];
}

Expand Down
2 changes: 1 addition & 1 deletion components/AppBar/examples/AppBarImageryExample.swift
Expand Up @@ -75,7 +75,7 @@ class AppBarImagerySwiftExample: UITableViewController {

func headerBackgroundImage() -> UIImage {
let bundle = NSBundle(forClass: AppBarImagerySwiftExample.self)
let imagePath = bundle.pathForResource("dinosaur", ofType: "jpg")!
let imagePath = bundle.pathForResource("mdc_theme", ofType: "png")!
return UIImage(contentsOfFile: imagePath)!
}
}
Expand Down
Binary file removed components/AppBar/examples/resources/dinosaur.jpg
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e3fee6c

Please sign in to comment.