Skip to content

Commit

Permalink
Revert "Fixes for background on featured image in post settings"
Browse files Browse the repository at this point in the history
This reverts commit 0cbf1fc.
  • Loading branch information
kduncanwelke committed Jan 9, 2020
1 parent 0cbf1fc commit d8f58e9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
<dict/>
</plist>
14 changes: 2 additions & 12 deletions WordPress/Classes/ViewRelated/Post/FeaturedImageViewController.m
Expand Up @@ -27,13 +27,7 @@ - (void)viewDidLoad
[super viewDidLoad];

self.title = NSLocalizedString(@"Featured Image", @"Title for the Featured Image view");

if (@available(iOS 13, *)) {
self.view.backgroundColor = [UIColor systemBackgroundColor];
} else {
self.view.backgroundColor = [UIColor whiteColor];
}

self.view.backgroundColor = [UIColor whiteColor];
self.navigationItem.leftBarButtonItems = @[self.doneButton];
self.navigationItem.rightBarButtonItems = @[self.removeButton];
}
Expand Down Expand Up @@ -100,11 +94,7 @@ - (void)hideBars:(BOOL)hide animated:(BOOL)animated
if (hide) {
self.view.backgroundColor = [UIColor blackColor];
} else {
if (@available(iOS 13, *)) {
self.view.backgroundColor = [UIColor systemBackgroundColor];
} else {
self.view.backgroundColor = [UIColor whiteColor];
}
self.view.backgroundColor = [UIColor whiteColor];
}
}];
}
Expand Down
14 changes: 8 additions & 6 deletions WordPress/Classes/ViewRelated/Post/Posts.storyboard
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15509"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -20,13 +22,13 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<containerView opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="100" translatesAutoresizingMaskIntoConstraints="NO" id="cnu-9z-5GZ">
<rect key="frame" x="0.0" y="90" width="375" height="577"/>
<rect key="frame" x="0.0" y="110" width="375" height="557"/>
<connections>
<segue destination="zOz-bT-2ph" kind="embed" id="m8J-kl-Bnz"/>
</connections>
</containerView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Nmf-Iz-jkG" customClass="FilterTabBar" customModule="WordPress" customModuleProvider="target">
<rect key="frame" x="0.0" y="44" width="375" height="46"/>
<rect key="frame" x="0.0" y="64" width="375" height="46"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="46" placeholder="YES" id="fBi-N5-bzO"/>
Expand Down Expand Up @@ -80,7 +82,7 @@
<objects>
<tableViewController id="zOz-bT-2ph" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" layoutMarginsFollowReadableWidth="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="300" sectionHeaderHeight="22" sectionFooterHeight="22" id="srU-rF-GC6">
<rect key="frame" x="0.0" y="0.0" width="375" height="577"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="557"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<connections>
Expand Down
2 changes: 1 addition & 1 deletion WordPress/WordPress.xcodeproj/project.pbxproj
Expand Up @@ -7802,9 +7802,9 @@
7E504D4921A5B8D400E341A8 /* PostEditorNavigationBarManager.swift */,
437542E21DD4E19E00D6B727 /* EditPostViewController.swift */,
5D146EB9189857ED0068FDC6 /* FeaturedImageViewController.h */,
5D146EBA189857ED0068FDC6 /* FeaturedImageViewController.m */,
93414DE41E2D25AE003143A3 /* PostEditorState.swift */,
32CA6EBF2390C61F00B51347 /* PostListEditorPresenter.swift */,
5D146EBA189857ED0068FDC6 /* FeaturedImageViewController.m */,
430693731DD25F31009398A2 /* PostPost.storyboard */,
43D54D121DCAA070007F575F /* PostPostViewController.swift */,
ACBAB6840E1247F700F38795 /* PostPreviewViewController.h */,
Expand Down

0 comments on commit d8f58e9

Please sign in to comment.