Fix Doug's remarks

This commit is contained in:
ismailgulek
2022-01-26 15:58:37 +03:00
parent abe26c43fe
commit ae57c7e1fb
14 changed files with 83 additions and 59 deletions
@@ -18,7 +18,7 @@ import Foundation
import Reusable
@objcMembers
class FromThreadView: UIView {
class FromAThreadView: UIView {
private enum Constants {
static let viewHeight: CGFloat = 18
@@ -32,8 +32,8 @@ class FromThreadView: UIView {
return Constants.viewHeight
}
static func instantiate() -> FromThreadView {
let view = FromThreadView.loadFromNib()
static func instantiate() -> FromAThreadView {
let view = FromAThreadView.loadFromNib()
view.update(theme: ThemeService.shared().theme)
view.titleLabel.text = VectorL10n.messageFromAThread
return view
@@ -41,9 +41,9 @@ class FromThreadView: UIView {
}
extension FromThreadView: NibLoadable {}
extension FromAThreadView: NibLoadable {}
extension FromThreadView: Themable {
extension FromAThreadView: Themable {
func update(theme: Theme) {
backgroundColor = .clear
@@ -11,22 +11,22 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="FromThreadView" customModule="Riot" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="139" height="44"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="FromAThreadView" customModule="Riot" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="139" height="18"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="gZf-Nh-De6">
<rect key="frame" x="0.0" y="0.0" width="139" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="139" height="18"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="threads_icon" translatesAutoresizingMaskIntoConstraints="NO" id="cdy-fz-kjn">
<rect key="frame" x="0.0" y="0.0" width="18" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="18" height="18"/>
<constraints>
<constraint firstAttribute="height" constant="18" id="3mH-It-De7"/>
<constraint firstAttribute="width" constant="18" id="Jzw-cL-zxG"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="From a thread" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fX6-Xz-I4e">
<rect key="frame" x="22" y="0.0" width="117" height="44"/>
<rect key="frame" x="22" y="0.0" width="117" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
@@ -38,16 +38,16 @@
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="gZf-Nh-De6" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="0Hy-t1-GHo"/>
<constraint firstAttribute="trailing" secondItem="gZf-Nh-De6" secondAttribute="trailing" id="ELX-qi-dTm"/>
<constraint firstAttribute="bottom" secondItem="gZf-Nh-De6" secondAttribute="bottom" id="Pye-fH-Zny"/>
<constraint firstItem="gZf-Nh-De6" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="b2i-tg-f7D"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="gZf-Nh-De6" secondAttribute="trailing" id="w9I-0I-lD2"/>
<constraint firstItem="gZf-Nh-De6" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="dWk-cp-fYS"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="iconView" destination="cdy-fz-kjn" id="Kev-ko-oTu"/>
<outlet property="titleLabel" destination="fX6-Xz-I4e" id="65X-PJ-RpF"/>
</connections>
<point key="canvasLocation" x="-119.56521739130436" y="-252.45535714285714"/>
<point key="canvasLocation" x="-119.56521739130436" y="-257.47767857142856"/>
</view>
</objects>
<resources>