Skip to content

Commit

Permalink
update paddings, margins, spacing etc
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed May 2, 2024
1 parent d6f776d commit c250468
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Kukai Mobile/Modules/Account/Account.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="insetGrouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" estimatedSectionHeaderHeight="-1" sectionFooterHeight="18" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="oRe-e5-5oV">
<rect key="frame" x="0.0" y="103" width="393" height="749"/>
<rect key="frame" x="0.0" y="127" width="393" height="725"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="separatorColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
Expand Down Expand Up @@ -1135,7 +1135,7 @@
<constraints>
<constraint firstItem="oRe-e5-5oV" firstAttribute="leading" secondItem="jsv-DB-BSC" secondAttribute="leading" id="2cj-6M-ymd"/>
<constraint firstItem="oRe-e5-5oV" firstAttribute="trailing" secondItem="jsv-DB-BSC" secondAttribute="trailing" id="KcU-sP-ubU"/>
<constraint firstItem="oRe-e5-5oV" firstAttribute="top" secondItem="jsv-DB-BSC" secondAttribute="top" id="MUm-Cl-hLC"/>
<constraint firstItem="oRe-e5-5oV" firstAttribute="top" secondItem="jsv-DB-BSC" secondAttribute="top" constant="24" id="MUm-Cl-hLC"/>
<constraint firstAttribute="bottom" secondItem="oRe-e5-5oV" secondAttribute="bottom" id="WXa-Ak-Mae"/>
</constraints>
</view>
Expand Down
5 changes: 3 additions & 2 deletions Kukai Mobile/Modules/Account/TokenDetailsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ class TokenDetailsViewController: UIViewController, UITableViewDelegate {
let address = DependencyManager.shared.selectedWalletAddress ?? ""
if TokenStateService.shared.removeHidden(forAddress: address, token: token) {
DependencyManager.shared.balanceService.updateTokenStates(forAddress: address, selectedAccount: true)
self?.dismiss(animated: true)
self?.navigationController?.popViewController(animated: true)

} else {
self?.windowError(withTitle: "error".localized(), description: "error-unhide-token".localized())
}
Expand All @@ -166,7 +167,7 @@ class TokenDetailsViewController: UIViewController, UITableViewDelegate {
let address = DependencyManager.shared.selectedWalletAddress ?? ""
if TokenStateService.shared.addHidden(forAddress: address, token: token) {
DependencyManager.shared.balanceService.updateTokenStates(forAddress: address, selectedAccount: true)
self?.dismiss(animated: true)
self?.navigationController?.popViewController(animated: true)

} else {
self?.windowError(withTitle: "error".localized(), description: "error-hide-token".localized())
Expand Down
8 changes: 4 additions & 4 deletions Kukai Mobile/Modules/Discover/Discover.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Discover" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cwV-gP-NKx">
<rect key="frame" x="16" y="21" width="72.333333333333329" height="21"/>
<rect key="frame" x="16" y="18.666666666666668" width="72.333333333333329" height="21.000000000000004"/>
<fontDescription key="fontDescription" name="Figtree-Bold" family="Figtree" pointSize="18"/>
<color key="textColor" name="Txt2"/>
<nil key="highlightedColor"/>
</label>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="1000" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uLl-Eg-mC4" customClass="CustomisableButton" customModule="Kukai_Mobile" customModuleProvider="target">
<rect key="frame" x="335" y="8" width="38" height="47"/>
<rect key="frame" x="335" y="8" width="38" height="42"/>
<constraints>
<constraint firstAttribute="width" constant="38" id="Unj-Gg-ybC"/>
<constraint firstAttribute="height" constant="38" id="dhd-c9-w3Q"/>
Expand Down Expand Up @@ -74,7 +74,7 @@
<constraint firstItem="uLl-Eg-mC4" firstAttribute="top" secondItem="p6z-XP-GL8" secondAttribute="top" constant="8" id="GC5-Ei-QH1"/>
<constraint firstItem="cwV-gP-NKx" firstAttribute="leading" secondItem="p6z-XP-GL8" secondAttribute="leading" constant="16" id="K6f-9U-vtq"/>
<constraint firstItem="uLl-Eg-mC4" firstAttribute="centerY" secondItem="cwV-gP-NKx" secondAttribute="centerY" id="eXc-gT-A28"/>
<constraint firstAttribute="bottom" secondItem="uLl-Eg-mC4" secondAttribute="bottom" constant="3" id="pnA-1f-07B"/>
<constraint firstAttribute="bottom" secondItem="uLl-Eg-mC4" secondAttribute="bottom" constant="8" id="pnA-1f-07B"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand Down Expand Up @@ -333,7 +333,7 @@
</scenes>
<designables>
<designable name="uLl-Eg-mC4">
<size key="intrinsicContentSize" width="26" height="26"/>
<size key="intrinsicContentSize" width="30" height="34"/>
</designable>
</designables>
<resources>
Expand Down
8 changes: 4 additions & 4 deletions Kukai Mobile/Modules/Side Menu/SideMenu.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="insetGrouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" estimatedSectionHeaderHeight="-1" sectionFooterHeight="18" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="S0B-cf-p5c">
<rect key="frame" x="0.0" y="103" width="393" height="749"/>
<rect key="frame" x="0.0" y="127" width="393" height="725"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="SideMenuOptionCell" rowHeight="52" id="mol-vp-Z86" customClass="SideMenuOptionCell" customModule="Kukai_Mobile" customModuleProvider="target">
Expand Down Expand Up @@ -626,7 +626,7 @@
<constraints>
<constraint firstItem="S0B-cf-p5c" firstAttribute="trailing" secondItem="DBo-DQ-1Eo" secondAttribute="trailing" id="ATx-rc-yOg"/>
<constraint firstAttribute="bottom" secondItem="S0B-cf-p5c" secondAttribute="bottom" id="dKk-dB-pZL"/>
<constraint firstItem="S0B-cf-p5c" firstAttribute="top" secondItem="DBo-DQ-1Eo" secondAttribute="top" id="eFv-mH-9Zs"/>
<constraint firstItem="S0B-cf-p5c" firstAttribute="top" secondItem="DBo-DQ-1Eo" secondAttribute="top" constant="24" id="eFv-mH-9Zs"/>
<constraint firstItem="S0B-cf-p5c" firstAttribute="leading" secondItem="DBo-DQ-1Eo" secondAttribute="leading" id="sJb-wM-qgB"/>
</constraints>
</view>
Expand Down Expand Up @@ -996,7 +996,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" estimatedSectionHeaderHeight="-1" sectionFooterHeight="18" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="THb-l2-U1S">
<rect key="frame" x="0.0" y="103" width="393" height="715"/>
<rect key="frame" x="0.0" y="127" width="393" height="691"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="CurrencyChoiceCell" rowHeight="71" id="RqK-9j-b9Q" customClass="CurrencyChoiceCell" customModule="Kukai_Mobile" customModuleProvider="target">
Expand Down Expand Up @@ -1067,7 +1067,7 @@
<constraints>
<constraint firstItem="6dS-y4-XJF" firstAttribute="trailing" secondItem="THb-l2-U1S" secondAttribute="trailing" id="4ja-cm-MpL"/>
<constraint firstItem="THb-l2-U1S" firstAttribute="leading" secondItem="6dS-y4-XJF" secondAttribute="leading" id="NZk-Ap-XRA"/>
<constraint firstItem="THb-l2-U1S" firstAttribute="top" secondItem="6dS-y4-XJF" secondAttribute="top" id="pSl-mo-EhY"/>
<constraint firstItem="THb-l2-U1S" firstAttribute="top" secondItem="6dS-y4-XJF" secondAttribute="top" constant="24" id="pSl-mo-EhY"/>
<constraint firstItem="6dS-y4-XJF" firstAttribute="bottom" secondItem="THb-l2-U1S" secondAttribute="bottom" id="vWU-Er-Tx8"/>
</constraints>
</view>
Expand Down

0 comments on commit c250468

Please sign in to comment.