Skip to content

Commit ab6275a

Browse files
committed
Changed switch background to dark grey, not green.
1 parent 8a9ed7e commit ab6275a

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

Swift Push.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
AA7D0F761C174338007F53F3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA7D0F741C174338007F53F3 /* LaunchScreen.storyboard */; };
1717
AAC65BF81C1743BD00AD4836 /* PushMessages+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAC65BF61C1743BD00AD4836 /* PushMessages+CoreDataProperties.swift */; };
1818
AAC65BF91C1743BD00AD4836 /* PushMessages.swift in Sources */ = {isa = PBXBuildFile; fileRef = AAC65BF71C1743BD00AD4836 /* PushMessages.swift */; };
19-
AAE727981C1F5EE9006EADEF /* background.jpg in Resources */ = {isa = PBXBuildFile; fileRef = AAE727971C1F5EE9006EADEF /* background.jpg */; };
2019
/* End PBXBuildFile section */
2120

2221
/* Begin PBXFileReference section */
@@ -31,7 +30,6 @@
3130
AA7D0F771C174338007F53F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3231
AAC65BF61C1743BD00AD4836 /* PushMessages+CoreDataProperties.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "PushMessages+CoreDataProperties.swift"; path = "Swift Push/PushMessages+CoreDataProperties.swift"; sourceTree = "<group>"; };
3332
AAC65BF71C1743BD00AD4836 /* PushMessages.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PushMessages.swift; path = "Swift Push/PushMessages.swift"; sourceTree = "<group>"; };
34-
AAE727971C1F5EE9006EADEF /* background.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = background.jpg; sourceTree = "<group>"; };
3533
/* End PBXFileReference section */
3634

3735
/* Begin PBXFrameworksBuildPhase section */
@@ -67,7 +65,6 @@
6765
AA7D0F671C174338007F53F3 /* Swift Push */ = {
6866
isa = PBXGroup;
6967
children = (
70-
AAE727971C1F5EE9006EADEF /* background.jpg */,
7168
AA7D0F681C174338007F53F3 /* AppDelegate.swift */,
7269
AA7D0F6A1C174338007F53F3 /* ViewController.swift */,
7370
AA7D0F6C1C174338007F53F3 /* Main.storyboard */,
@@ -144,7 +141,6 @@
144141
buildActionMask = 2147483647;
145142
files = (
146143
AA7D0F761C174338007F53F3 /* LaunchScreen.storyboard in Resources */,
147-
AAE727981C1F5EE9006EADEF /* background.jpg in Resources */,
148144
AA7D0F731C174338007F53F3 /* Assets.xcassets in Resources */,
149145
AA302C361C1CB74500272E96 /* README.txt in Resources */,
150146
AA7D0F6E1C174338007F53F3 /* Main.storyboard in Resources */,

Swift Push/Base.lproj/Main.storyboard

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
1616
<prototypes>
1717
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="Cell" textLabel="Y6V-pK-YF5" detailTextLabel="QOP-pJ-6oa" style="IBUITableViewCellStyleSubtitle" id="mta-ed-FwN">
18-
<rect key="frame" x="0.0" y="114" width="600" height="44"/>
18+
<rect key="frame" x="0.0" y="113.5" width="600" height="44"/>
1919
<autoresizingMask key="autoresizingMask"/>
2020
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="mta-ed-FwN" id="WoY-P6-9QE">
21-
<rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
21+
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
2222
<autoresizingMask key="autoresizingMask"/>
2323
<subviews>
2424
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Y6V-pK-YF5">
25-
<rect key="frame" x="15" y="5" width="32" height="20"/>
25+
<rect key="frame" x="15" y="6" width="31.5" height="19.5"/>
2626
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
2727
<fontDescription key="fontDescription" type="system" pointSize="16"/>
2828
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
2929
<nil key="highlightedColor"/>
3030
</label>
3131
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Subtitle" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="QOP-pJ-6oa">
32-
<rect key="frame" x="15" y="25" width="41" height="14"/>
32+
<rect key="frame" x="15" y="25.5" width="40.5" height="13.5"/>
3333
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
3434
<fontDescription key="fontDescription" type="system" pointSize="11"/>
3535
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
@@ -49,6 +49,7 @@
4949
<switch key="customView" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" id="Q3U-ZO-GPe">
5050
<rect key="frame" x="531" y="6" width="51" height="31"/>
5151
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
52+
<color key="onTintColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
5253
<connections>
5354
<action selector="alertSwitch:" destination="BYZ-38-t0r" eventType="valueChanged" id="vrj-0s-t08"/>
5455
</connections>

Swift Push/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>328</string>
22+
<string>330</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push/ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ class ViewController: UIViewController, UITableViewDataSource, UITableViewDelega
100100

101101
if let value = record.valueForKey("isAlert") {
102102
if (value as! Bool) {
103-
cell.backgroundColor = UIColor.whiteColor()
103+
cell.backgroundColor = UIColor.lightGrayColor().colorWithAlphaComponent(0.05)
104104
} else {
105-
cell.backgroundColor = cell.backgroundColor!.colorWithAlphaComponent(0.05)
105+
cell.backgroundColor = UIColor.whiteColor()
106106
}
107107
}
108108
}

Swift Push/background.jpg

-347 KB
Binary file not shown.

0 commit comments

Comments
 (0)