Skip to content

Commit

Permalink
Apply new style to 'About me' button
Browse files Browse the repository at this point in the history
  • Loading branch information
filipealva committed Apr 25, 2015
1 parent 79fb4da commit 38f49f8
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 14 deletions.
26 changes: 13 additions & 13 deletions Filipe Alvarenga/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
</connections>
</scrollView>
<view alpha="0.95999999999999996" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3Cl-Fi-irk">
<rect key="frame" x="0.0" y="556" width="600" height="44"/>
<rect key="frame" x="0.0" y="547" width="600" height="53"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QbK-2c-2ly">
<rect key="frame" x="480" y="0.0" width="120" height="44"/>
<rect key="frame" x="512" y="0.0" width="80" height="53"/>
<constraints>
<constraint firstAttribute="width" constant="120" id="gxw-6f-vK3"/>
<constraint firstAttribute="height" constant="44" id="vwW-C1-gRJ"/>
<constraint firstAttribute="height" constant="53" id="A3D-rZ-atY"/>
<constraint firstAttribute="width" constant="80" id="MmD-Pg-UId"/>
</constraints>
<fontDescription key="fontDescription" name="OpenSans-Light" family="Open Sans" pointSize="15"/>
<inset key="titleEdgeInsets" minX="0.0" minY="0.0" maxX="0.0" maxY="1"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="10" maxY="0.0"/>
<state key="normal" title="About me" image="Profile-Line">
<fontDescription key="fontDescription" name="OpenSans-Light" family="Open Sans" pointSize="13"/>
<inset key="titleEdgeInsets" minX="-20" minY="0.0" maxX="0.0" maxY="-30"/>
<inset key="imageEdgeInsets" minX="26" minY="-15" maxX="10" maxY="0.0"/>
<state key="normal" title="About me" image="aboutme">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</state>
Expand All @@ -62,10 +62,10 @@
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="QbK-2c-2ly" secondAttribute="trailing" id="P0c-wQ-iu6"/>
<constraint firstItem="QbK-2c-2ly" firstAttribute="top" secondItem="3Cl-Fi-irk" secondAttribute="top" id="WyI-Ru-G3i"/>
<constraint firstAttribute="height" constant="44" id="lPp-gc-WAb"/>
<constraint firstAttribute="bottom" secondItem="QbK-2c-2ly" secondAttribute="bottom" id="oGY-R5-Leb"/>
<constraint firstItem="QbK-2c-2ly" firstAttribute="top" secondItem="3Cl-Fi-irk" secondAttribute="top" id="UMr-sN-ZJM"/>
<constraint firstAttribute="height" constant="53" id="lPp-gc-WAb"/>
<constraint firstAttribute="bottom" secondItem="QbK-2c-2ly" secondAttribute="bottom" id="pnO-HJ-Tye"/>
<constraint firstAttribute="trailing" secondItem="QbK-2c-2ly" secondAttribute="trailing" constant="8" id="vo4-L8-9X1"/>
</constraints>
</view>
</subviews>
Expand Down Expand Up @@ -324,7 +324,7 @@
</scene>
</scenes>
<resources>
<image name="Profile-Line" width="23" height="23"/>
<image name="aboutme" width="28" height="28"/>
<image name="me" width="225" height="225"/>
</resources>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x",
"filename" : "User Male Circle-100.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Filipe Alvarenga/Images.xcassets/aboutme.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "aboutme.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "aboutme@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Filipe Alvarenga/Model/Story.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Story {
} else {
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "MMMM yyyy"
self.date = dateFormatter.stringFromDate(NSDate())
self.date = dateFormatter.stringFromDate(NSDate()).capitalizedString
}
}

Expand Down

0 comments on commit 38f49f8

Please sign in to comment.