MESSENGER-5668 change button appearance key backup

This commit is contained in:
JanNiklas Grabowski
2024-02-23 16:45:48 +01:00
parent 62a3bc70f5
commit 507eeabf75
2 changed files with 11 additions and 14 deletions

View File

@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="cb6-oF-e0m">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="cb6-oF-e0m">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@@ -13,7 +11,7 @@
<!--Key Backup Recover Success View Controller-->
<scene sceneID="JIv-4y-eqa">
<objects>
<viewController extendedLayoutIncludesOpaqueBars="YES" automaticallyAdjustsScrollViewInsets="NO" id="cb6-oF-e0m" customClass="KeyBackupRecoverSuccessViewController" customModule="Riot" customModuleProvider="target" sceneMemberID="viewController">
<viewController extendedLayoutIncludesOpaqueBars="YES" automaticallyAdjustsScrollViewInsets="NO" id="cb6-oF-e0m" customClass="KeyBackupRecoverSuccessViewController" customModule="Element" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="JOd-8G-rga">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -43,12 +41,11 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZNs-LM-cnm">
<rect key="frame" x="0.0" y="169" width="375" height="50"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TGk-W1-0Q1">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TGk-W1-0Q1" customClass="RoundedButton" customModule="Element" customModuleProvider="target">
<rect key="frame" x="80" y="0.0" width="215" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="7wB-0p-6tW"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<inset key="contentEdgeInsets" minX="10" minY="0.0" maxX="10" maxY="0.0"/>
<state key="normal" title="Done">
<color key="titleColor" red="0.47843137250000001" green="0.78823529410000004" blue="0.63137254899999995" alpha="1" colorSpace="calibratedRGB"/>
@@ -63,10 +60,10 @@
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="TGk-W1-0Q1" firstAttribute="leading" secondItem="ZNs-LM-cnm" secondAttribute="leading" id="1Fb-Kk-7Ep"/>
<constraint firstItem="TGk-W1-0Q1" firstAttribute="leading" secondItem="ZNs-LM-cnm" secondAttribute="leading" constant="80" id="1Fb-Kk-7Ep"/>
<constraint firstAttribute="bottom" secondItem="TGk-W1-0Q1" secondAttribute="bottom" id="OE8-C8-osg"/>
<constraint firstItem="TGk-W1-0Q1" firstAttribute="top" secondItem="ZNs-LM-cnm" secondAttribute="top" id="OP2-bN-fUv"/>
<constraint firstAttribute="trailing" secondItem="TGk-W1-0Q1" secondAttribute="trailing" id="Ql7-BF-E2a"/>
<constraint firstAttribute="trailing" secondItem="TGk-W1-0Q1" secondAttribute="trailing" constant="80" id="Ql7-BF-E2a"/>
</constraints>
</view>
</subviews>
@@ -104,6 +101,7 @@
</constraints>
</scrollView>
</subviews>
<viewLayoutGuide key="safeArea" id="Y3k-2C-Pek"/>
<color key="backgroundColor" red="0.94509803920000002" green="0.96078431369999995" blue="0.97254901959999995" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="cUL-rS-rfi" firstAttribute="leading" secondItem="Y3k-2C-Pek" secondAttribute="leading" id="9ZI-Gm-3DT"/>
@@ -111,7 +109,6 @@
<constraint firstItem="Y3k-2C-Pek" firstAttribute="top" secondItem="cUL-rS-rfi" secondAttribute="top" id="ffm-HV-RhA"/>
<constraint firstAttribute="bottom" secondItem="cUL-rS-rfi" secondAttribute="bottom" id="rib-a1-j68"/>
</constraints>
<viewLayoutGuide key="safeArea" id="Y3k-2C-Pek"/>
</view>
<connections>
<outlet property="doneButton" destination="TGk-W1-0Q1" id="Mv9-6A-a9q"/>

View File

@@ -31,7 +31,7 @@ final class KeyBackupRecoverSuccessViewController: UIViewController {
@IBOutlet private weak var informationLabel: UILabel!
@IBOutlet private weak var doneButtonBackgroundView: UIView!
@IBOutlet private weak var doneButton: UIButton!
@IBOutlet private weak var doneButton: RoundedButton!
// MARK: Private
@@ -101,7 +101,7 @@ final class KeyBackupRecoverSuccessViewController: UIViewController {
self.informationLabel.textColor = theme.textPrimaryColor
self.doneButtonBackgroundView.backgroundColor = theme.backgroundColor
theme.applyStyle(onButton: self.doneButton)
self.doneButton.update(theme: theme)
}
private func registerThemeServiceDidChangeThemeNotification() {