using custom font
This commit is contained in:
parent
8aa93d28e7
commit
ecdba25aa0
|
@ -9,6 +9,11 @@
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<customFonts key="customFonts">
|
||||||
|
<array key="SourceSansPro-Regular.ttf">
|
||||||
|
<string>SourceSansPro-Regular</string>
|
||||||
|
</array>
|
||||||
|
</customFonts>
|
||||||
<scenes>
|
<scenes>
|
||||||
<!--View Controller-->
|
<!--View Controller-->
|
||||||
<scene sceneID="tne-QT-ifu">
|
<scene sceneID="tne-QT-ifu">
|
||||||
|
@ -23,6 +28,7 @@
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="48" id="Igh-s5-jmk"/>
|
<constraint firstAttribute="height" constant="48" id="Igh-s5-jmk"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="16"/>
|
||||||
<state key="normal" title="!!Create a new wallet"/>
|
<state key="normal" title="!!Create a new wallet"/>
|
||||||
<userDefinedRuntimeAttributes>
|
<userDefinedRuntimeAttributes>
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||||
|
@ -38,6 +44,7 @@
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="48" id="JZC-OD-1d8"/>
|
<constraint firstAttribute="height" constant="48" id="JZC-OD-1d8"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="16"/>
|
||||||
<state key="normal" title="!!Recover wallet"/>
|
<state key="normal" title="!!Recover wallet"/>
|
||||||
<userDefinedRuntimeAttributes>
|
<userDefinedRuntimeAttributes>
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||||
|
|
|
@ -93,6 +93,12 @@
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||||
<real key="value" value="0.0"/>
|
<real key="value" value="0.0"/>
|
||||||
</userDefinedRuntimeAttribute>
|
</userDefinedRuntimeAttribute>
|
||||||
|
<userDefinedRuntimeAttribute type="number" keyPath="shadowRadius">
|
||||||
|
<real key="value" value="20"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
|
<userDefinedRuntimeAttribute type="size" keyPath="shadowOffset">
|
||||||
|
<size key="value" width="0.0" height="10"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</button>
|
</button>
|
||||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Wm8-M3-API" userLabel="QRCodeButton" customClass="ZWButton" customModule="ZWallet" customModuleProvider="target">
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Wm8-M3-API" userLabel="QRCodeButton" customClass="ZWButton" customModule="ZWallet" customModuleProvider="target">
|
||||||
|
@ -110,13 +116,22 @@
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||||
<real key="value" value="0.0"/>
|
<real key="value" value="0.0"/>
|
||||||
</userDefinedRuntimeAttribute>
|
</userDefinedRuntimeAttribute>
|
||||||
|
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||||
|
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
|
<userDefinedRuntimeAttribute type="number" keyPath="shadowRadius">
|
||||||
|
<real key="value" value="20"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
|
<userDefinedRuntimeAttribute type="size" keyPath="shadowOffset">
|
||||||
|
<size key="value" width="0.0" height="10"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</button>
|
</button>
|
||||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="etR-G8-YOv" userLabel="TrxTableView">
|
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="etR-G8-YOv" userLabel="TrxTableView">
|
||||||
<rect key="frame" x="0.0" y="316" width="414" height="580"/>
|
<rect key="frame" x="0.0" y="316" width="414" height="580"/>
|
||||||
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
||||||
<prototypes>
|
<prototypes>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="80" id="tJV-bC-RBh">
|
<tableViewCell contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="TrxCell" rowHeight="80" id="tJV-bC-RBh">
|
||||||
<rect key="frame" x="0.0" y="55.5" width="414" height="80"/>
|
<rect key="frame" x="0.0" y="55.5" width="414" height="80"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="tJV-bC-RBh" id="tbN-Xt-Swv">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="tJV-bC-RBh" id="tbN-Xt-Swv">
|
||||||
|
@ -131,7 +146,7 @@
|
||||||
</constraints>
|
</constraints>
|
||||||
</imageView>
|
</imageView>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!Received" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kfl-QO-Fmg">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!Received" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kfl-QO-Fmg">
|
||||||
<rect key="frame" x="65" y="22" width="100" height="18"/>
|
<rect key="frame" x="54" y="22" width="100" height="18"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="100" id="s6l-NB-oEt"/>
|
<constraint firstAttribute="width" constant="100" id="s6l-NB-oEt"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
@ -140,7 +155,7 @@
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" alpha="0.40000000000000002" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!22:08" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TJc-P0-KVQ">
|
<label opaque="NO" userInteractionEnabled="NO" alpha="0.40000000000000002" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!22:08" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TJc-P0-KVQ">
|
||||||
<rect key="frame" x="65" y="43" width="50" height="18"/>
|
<rect key="frame" x="54" y="43" width="50" height="18"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="50" id="i3t-uO-hLC"/>
|
<constraint firstAttribute="width" constant="50" id="i3t-uO-hLC"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
@ -157,13 +172,6 @@
|
||||||
<nil key="textColor"/>
|
<nil key="textColor"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="DisclosureIndicator" translatesAutoresizingMaskIntoConstraints="NO" id="PdB-OF-EFR">
|
|
||||||
<rect key="frame" x="382" y="33.5" width="8" height="13"/>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="13" id="rXd-6y-xTM"/>
|
|
||||||
<constraint firstAttribute="width" constant="8" id="xob-em-WfL"/>
|
|
||||||
</constraints>
|
|
||||||
</imageView>
|
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!+22.080000 ZEC" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KXK-L6-XWN">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!+22.080000 ZEC" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KXK-L6-XWN">
|
||||||
<rect key="frame" x="166" y="19" width="200" height="26"/>
|
<rect key="frame" x="166" y="19" width="200" height="26"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
@ -173,18 +181,25 @@
|
||||||
<color key="textColor" red="0.14642497897148132" green="0.69897288084030151" blue="0.31937551498413086" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="textColor" red="0.14642497897148132" green="0.69897288084030151" blue="0.31937551498413086" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
|
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="DisclosureIndicator" translatesAutoresizingMaskIntoConstraints="NO" id="PdB-OF-EFR">
|
||||||
|
<rect key="frame" x="382" y="33.5" width="8" height="13"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="height" constant="13" id="rXd-6y-xTM"/>
|
||||||
|
<constraint firstAttribute="width" constant="8" id="xob-em-WfL"/>
|
||||||
|
</constraints>
|
||||||
|
</imageView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="Zo3-P7-XAE" firstAttribute="centerY" secondItem="tbN-Xt-Swv" secondAttribute="centerY" id="1r1-Jx-3Um"/>
|
<constraint firstItem="Zo3-P7-XAE" firstAttribute="centerY" secondItem="tbN-Xt-Swv" secondAttribute="centerY" id="1r1-Jx-3Um"/>
|
||||||
<constraint firstItem="KXK-L6-XWN" firstAttribute="top" secondItem="tbN-Xt-Swv" secondAttribute="top" constant="19" id="6IQ-VA-6Ss"/>
|
<constraint firstItem="KXK-L6-XWN" firstAttribute="top" secondItem="tbN-Xt-Swv" secondAttribute="top" constant="19" id="6IQ-VA-6Ss"/>
|
||||||
<constraint firstItem="TJc-P0-KVQ" firstAttribute="leading" secondItem="Zo3-P7-XAE" secondAttribute="trailing" constant="21" id="8Sq-m6-sRc"/>
|
<constraint firstItem="TJc-P0-KVQ" firstAttribute="leading" secondItem="Zo3-P7-XAE" secondAttribute="trailing" constant="10" id="8Sq-m6-sRc"/>
|
||||||
<constraint firstAttribute="bottomMargin" secondItem="q6G-cM-ax8" secondAttribute="bottom" constant="8" id="R1S-aC-kFR"/>
|
<constraint firstAttribute="bottomMargin" secondItem="q6G-cM-ax8" secondAttribute="bottom" constant="8" id="R1S-aC-kFR"/>
|
||||||
<constraint firstItem="PdB-OF-EFR" firstAttribute="centerY" secondItem="tbN-Xt-Swv" secondAttribute="centerY" id="W10-aj-5zN"/>
|
<constraint firstItem="PdB-OF-EFR" firstAttribute="centerY" secondItem="tbN-Xt-Swv" secondAttribute="centerY" id="W10-aj-5zN"/>
|
||||||
<constraint firstAttribute="bottomMargin" secondItem="TJc-P0-KVQ" secondAttribute="bottom" constant="8" id="Y82-ya-C3a"/>
|
<constraint firstAttribute="bottomMargin" secondItem="TJc-P0-KVQ" secondAttribute="bottom" constant="8" id="Y82-ya-C3a"/>
|
||||||
<constraint firstItem="KXK-L6-XWN" firstAttribute="trailing" secondItem="q6G-cM-ax8" secondAttribute="trailing" id="YLB-iR-w7u"/>
|
<constraint firstItem="KXK-L6-XWN" firstAttribute="trailing" secondItem="q6G-cM-ax8" secondAttribute="trailing" id="YLB-iR-w7u"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="PdB-OF-EFR" secondAttribute="trailing" constant="24" id="a2R-eZ-N7G"/>
|
<constraint firstAttribute="trailing" secondItem="PdB-OF-EFR" secondAttribute="trailing" constant="24" id="a2R-eZ-N7G"/>
|
||||||
<constraint firstItem="Zo3-P7-XAE" firstAttribute="leading" secondItem="tbN-Xt-Swv" secondAttribute="leadingMargin" id="f2r-SO-c3e"/>
|
<constraint firstItem="Zo3-P7-XAE" firstAttribute="leading" secondItem="tbN-Xt-Swv" secondAttribute="leadingMargin" id="f2r-SO-c3e"/>
|
||||||
<constraint firstItem="kfl-QO-Fmg" firstAttribute="leading" secondItem="Zo3-P7-XAE" secondAttribute="trailing" constant="21" id="if9-zp-nYz"/>
|
<constraint firstItem="kfl-QO-Fmg" firstAttribute="leading" secondItem="Zo3-P7-XAE" secondAttribute="trailing" constant="10" id="if9-zp-nYz"/>
|
||||||
<constraint firstItem="kfl-QO-Fmg" firstAttribute="top" secondItem="tbN-Xt-Swv" secondAttribute="topMargin" constant="11" id="or4-w0-8wT"/>
|
<constraint firstItem="kfl-QO-Fmg" firstAttribute="top" secondItem="tbN-Xt-Swv" secondAttribute="topMargin" constant="11" id="or4-w0-8wT"/>
|
||||||
<constraint firstItem="PdB-OF-EFR" firstAttribute="trailing" secondItem="KXK-L6-XWN" secondAttribute="trailing" constant="24" id="peB-OP-Naa"/>
|
<constraint firstItem="PdB-OF-EFR" firstAttribute="trailing" secondItem="KXK-L6-XWN" secondAttribute="trailing" constant="24" id="peB-OP-Naa"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
|
|
@ -9,6 +9,14 @@
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<customFonts key="customFonts">
|
||||||
|
<array key="SourceSansPro-Bold.ttf">
|
||||||
|
<string>SourceSansPro-Bold</string>
|
||||||
|
</array>
|
||||||
|
<array key="SourceSansPro-Regular.ttf">
|
||||||
|
<string>SourceSansPro-Regular</string>
|
||||||
|
</array>
|
||||||
|
</customFonts>
|
||||||
<scenes>
|
<scenes>
|
||||||
<!--View Controller-->
|
<!--View Controller-->
|
||||||
<scene sceneID="5TK-63-Amy">
|
<scene sceneID="5TK-63-Amy">
|
||||||
|
@ -44,8 +52,8 @@
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="31" id="TKL-j1-J2Y"/>
|
<constraint firstAttribute="height" constant="31" id="TKL-j1-J2Y"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="21"/>
|
<fontDescription key="fontDescription" name="SourceSansPro-Bold" family="Source Sans Pro" pointSize="24"/>
|
||||||
<nil key="textColor"/>
|
<color key="textColor" red="0.29016751050949097" green="0.29021432995796204" blue="0.2901572585105896" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!Set a PIN. If you forget your PIN you must restore your wallet from your seed you wrote down." textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" adjustsLetterSpacingToFitWidth="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dhj-KA-DVx">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="!!Set a PIN. If you forget your PIN you must restore your wallet from your seed you wrote down." textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" adjustsLetterSpacingToFitWidth="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dhj-KA-DVx">
|
||||||
|
@ -53,8 +61,8 @@
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="41" id="lQs-jy-ZpH"/>
|
<constraint firstAttribute="height" constant="41" id="lQs-jy-ZpH"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<fontDescription key="fontDescription" type="system" weight="light" pointSize="16"/>
|
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="16"/>
|
||||||
<nil key="textColor"/>
|
<color key="textColor" red="0.2901675105" green="0.29021433000000002" blue="0.29015725850000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Y4R-iy-GOg" customClass="ZWPinDotView" customModule="ZWallet" customModuleProvider="target">
|
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Y4R-iy-GOg" customClass="ZWPinDotView" customModule="ZWallet" customModuleProvider="target">
|
||||||
|
|
|
@ -8,6 +8,17 @@
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<customFonts key="customFonts">
|
||||||
|
<array key="SourceSansPro-Bold.ttf">
|
||||||
|
<string>SourceSansPro-Bold</string>
|
||||||
|
</array>
|
||||||
|
<array key="SourceSansPro-Regular.ttf">
|
||||||
|
<string>SourceSansPro-Regular</string>
|
||||||
|
</array>
|
||||||
|
<array key="SourceSansPro-SemiBold.ttf">
|
||||||
|
<string>SourceSansPro-SemiBold</string>
|
||||||
|
</array>
|
||||||
|
</customFonts>
|
||||||
<scenes>
|
<scenes>
|
||||||
<!--View Controller-->
|
<!--View Controller-->
|
||||||
<scene sceneID="5TK-63-Amy">
|
<scene sceneID="5TK-63-Amy">
|
||||||
|
@ -43,8 +54,8 @@
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="31" id="TKL-j1-J2Y"/>
|
<constraint firstAttribute="height" constant="31" id="TKL-j1-J2Y"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="21"/>
|
<fontDescription key="fontDescription" name="SourceSansPro-Bold" family="Source Sans Pro" pointSize="24"/>
|
||||||
<nil key="textColor"/>
|
<color key="textColor" red="0.2901675105" green="0.29021433000000002" blue="0.29015725850000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="6" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" adjustsLetterSpacingToFitWidth="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dhj-KA-DVx">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="6" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" adjustsLetterSpacingToFitWidth="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dhj-KA-DVx">
|
||||||
|
@ -53,8 +64,8 @@
|
||||||
<constraint firstAttribute="height" constant="121" id="lQs-jy-ZpH"/>
|
<constraint firstAttribute="height" constant="121" id="lQs-jy-ZpH"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<string key="text">!!Please choose a passphrase to protect the backup of your wallet. Your backups will be saved to your iCloud account. If you forget this passphrase or lose access to your iCloud account, your wallet will be impossible to recover.</string>
|
<string key="text">!!Please choose a passphrase to protect the backup of your wallet. Your backups will be saved to your iCloud account. If you forget this passphrase or lose access to your iCloud account, your wallet will be impossible to recover.</string>
|
||||||
<fontDescription key="fontDescription" type="system" weight="light" pointSize="16"/>
|
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="16"/>
|
||||||
<nil key="textColor"/>
|
<color key="textColor" red="0.2901675105" green="0.29021433000000002" blue="0.29015725850000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="!!Type your passphrase" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="miM-vD-sj4">
|
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="!!Type your passphrase" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="miM-vD-sj4">
|
||||||
|
@ -62,24 +73,24 @@
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="23" id="2tw-nU-SUI"/>
|
<constraint firstAttribute="height" constant="23" id="2tw-nU-SUI"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<nil key="textColor"/>
|
<color key="textColor" red="0.72156862749999995" green="0.72156862749999995" blue="0.72156862749999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="18"/>
|
||||||
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="alphabet" returnKeyType="next" secureTextEntry="YES" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no" textContentType="password"/>
|
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" keyboardType="alphabet" returnKeyType="next" secureTextEntry="YES" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no" textContentType="password"/>
|
||||||
</textField>
|
</textField>
|
||||||
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="H0N-Ax-m9d" customClass="ZWButton" customModule="ZWallet">
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="H0N-Ax-m9d" customClass="ZWButton" customModule="ZWallet">
|
||||||
<rect key="frame" x="0.0" y="477" width="414" height="56"/>
|
<rect key="frame" x="0.0" y="477" width="414" height="56"/>
|
||||||
<color key="backgroundColor" red="0.14474189281463623" green="0.55489373207092285" blue="0.96221667528152466" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="backgroundColor" red="0.14474189281463623" green="0.55489373207092285" blue="0.96221667528152466" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="56" id="brW-Yb-hQ5"/>
|
<constraint firstAttribute="height" constant="56" id="brW-Yb-hQ5"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="16"/>
|
<fontDescription key="fontDescription" name="SourceSansPro-SemiBold" family="Source Sans Pro" pointSize="16"/>
|
||||||
<state key="normal" title="!!Next"/>
|
<state key="normal" title="!!Next"/>
|
||||||
<userDefinedRuntimeAttributes>
|
<userDefinedRuntimeAttributes>
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||||
<real key="value" value="0.0"/>
|
<real key="value" value="0.0"/>
|
||||||
</userDefinedRuntimeAttribute>
|
</userDefinedRuntimeAttribute>
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||||
<real key="value" value="2"/>
|
<real key="value" value="0.0"/>
|
||||||
</userDefinedRuntimeAttribute>
|
</userDefinedRuntimeAttribute>
|
||||||
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
||||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
@ -92,6 +103,7 @@
|
||||||
<constraint firstItem="Vyu-5m-YUx" firstAttribute="trailing" secondItem="miM-vD-sj4" secondAttribute="trailing" constant="24" id="2s0-qI-ezO"/>
|
<constraint firstItem="Vyu-5m-YUx" firstAttribute="trailing" secondItem="miM-vD-sj4" secondAttribute="trailing" constant="24" id="2s0-qI-ezO"/>
|
||||||
<constraint firstItem="r9g-U1-6GC" firstAttribute="top" secondItem="wua-MI-GFO" secondAttribute="bottom" constant="32" id="2sr-L1-ZYq"/>
|
<constraint firstItem="r9g-U1-6GC" firstAttribute="top" secondItem="wua-MI-GFO" secondAttribute="bottom" constant="32" id="2sr-L1-ZYq"/>
|
||||||
<constraint firstItem="miM-vD-sj4" firstAttribute="leading" secondItem="Vyu-5m-YUx" secondAttribute="leading" constant="24" id="FKs-Vj-WtE"/>
|
<constraint firstItem="miM-vD-sj4" firstAttribute="leading" secondItem="Vyu-5m-YUx" secondAttribute="leading" constant="24" id="FKs-Vj-WtE"/>
|
||||||
|
<constraint firstItem="Vyu-5m-YUx" firstAttribute="bottom" secondItem="H0N-Ax-m9d" secondAttribute="bottom" constant="329" id="FPj-Sn-BCT"/>
|
||||||
<constraint firstItem="Vyu-5m-YUx" firstAttribute="trailing" secondItem="dhj-KA-DVx" secondAttribute="trailing" constant="24" id="Oye-ok-7aN"/>
|
<constraint firstItem="Vyu-5m-YUx" firstAttribute="trailing" secondItem="dhj-KA-DVx" secondAttribute="trailing" constant="24" id="Oye-ok-7aN"/>
|
||||||
<constraint firstItem="dhj-KA-DVx" firstAttribute="leading" secondItem="Vyu-5m-YUx" secondAttribute="leading" constant="24" id="VTn-Ch-vJ3"/>
|
<constraint firstItem="dhj-KA-DVx" firstAttribute="leading" secondItem="Vyu-5m-YUx" secondAttribute="leading" constant="24" id="VTn-Ch-vJ3"/>
|
||||||
<constraint firstItem="dhj-KA-DVx" firstAttribute="top" secondItem="r9g-U1-6GC" secondAttribute="bottom" constant="8" id="W9d-Rh-pJf"/>
|
<constraint firstItem="dhj-KA-DVx" firstAttribute="top" secondItem="r9g-U1-6GC" secondAttribute="bottom" constant="8" id="W9d-Rh-pJf"/>
|
||||||
|
|
|
@ -11,13 +11,13 @@ import UIKit
|
||||||
@IBDesignable
|
@IBDesignable
|
||||||
class ZWButton: UIButton {
|
class ZWButton: UIButton {
|
||||||
|
|
||||||
@IBInspectable var cornerRadius: Float = 4.0 {
|
@IBInspectable var cornerRadius: CGFloat = 4.0 {
|
||||||
didSet {
|
didSet {
|
||||||
self.setCornerRadius()
|
self.setCornerRadius()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBInspectable var borderWidth: Float = 1.0 {
|
@IBInspectable var borderWidth: CGFloat = 1.0 {
|
||||||
didSet {
|
didSet {
|
||||||
self.setBorderWidth()
|
self.setBorderWidth()
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,18 @@ class ZWButton: UIButton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@IBInspectable var shadowRadius: CGFloat = 0.0 {
|
||||||
|
didSet {
|
||||||
|
self.setShadow()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBInspectable var shadowOffset: CGSize = CGSize(width: 0, height: 0) {
|
||||||
|
didSet {
|
||||||
|
self.setShadow()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
required init?(coder aDecoder: NSCoder) {
|
required init?(coder aDecoder: NSCoder) {
|
||||||
super.init(coder: aDecoder)
|
super.init(coder: aDecoder)
|
||||||
self.setVisualDefaults()
|
self.setVisualDefaults()
|
||||||
|
@ -55,14 +67,15 @@ class ZWButton: UIButton {
|
||||||
self.setBorderColor()
|
self.setBorderColor()
|
||||||
self.setBackgroundColor()
|
self.setBackgroundColor()
|
||||||
self.setTextColor()
|
self.setTextColor()
|
||||||
|
self.setShadow()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setCornerRadius() {
|
private func setCornerRadius() {
|
||||||
self.layer.cornerRadius = CGFloat(self.cornerRadius)
|
self.layer.cornerRadius = self.cornerRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setBorderWidth() {
|
private func setBorderWidth() {
|
||||||
self.layer.borderWidth = CGFloat(self.borderWidth)
|
self.layer.borderWidth = self.borderWidth
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setBorderColor() {
|
private func setBorderColor() {
|
||||||
|
@ -76,4 +89,12 @@ class ZWButton: UIButton {
|
||||||
private func setTextColor() {
|
private func setTextColor() {
|
||||||
self.tintColor = self.textColor
|
self.tintColor = self.textColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setShadow() {
|
||||||
|
self.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.25).cgColor
|
||||||
|
self.layer.shadowOffset = self.shadowOffset
|
||||||
|
self.layer.shadowOpacity = 1.0
|
||||||
|
self.layer.shadowRadius = self.shadowRadius
|
||||||
|
self.layer.masksToBounds = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue