Skip to content

Commit

Permalink
Bugfix dark or light mode on detail screen
Browse files Browse the repository at this point in the history
  • Loading branch information
All3yp committed Oct 6, 2021
1 parent 06afd9c commit a5fa4fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions Sticky Links/Controllers/LinksViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class LinksViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
view.backgroundColor = UIColor.primaryBackgroundColor
}
}

Expand Down
18 changes: 11 additions & 7 deletions Sticky Links/View/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,27 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="sectionIndexColor" name="TextColors"/>
<color key="sectionIndexBackgroundColor" name="PrimaryBackgroundColor"/>
<searchBar key="tableHeaderView" contentMode="redraw" text="" id="szk-Ml-o5U">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<color key="barTintColor" name="PrimaryBackgroundColor"/>
<textInputTraits key="textInputTraits"/>
<connections>
<outlet property="delegate" destination="X4Q-zs-uTj" id="pMA-Ru-Gsd"/>
</connections>
</searchBar>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="LinkCell" id="Jgs-ap-hfS">
<rect key="frame" x="0.0" y="88.666666030883789" width="414" height="43.666667938232422"/>
<rect key="frame" x="0.0" y="88.666666030883789" width="414" height="43.333332061767578"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="Jgs-ap-hfS" id="D2V-ZO-8DE">
<rect key="frame" x="0.0" y="0.0" width="384.33333333333331" height="43.666667938232422"/>
<rect key="frame" x="0.0" y="0.0" width="384.33333333333331" height="43.333332061767578"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yif-eD-zTA" userLabel="Bookmark Link Button">
<rect key="frame" x="337.33333333333331" y="6.0000000000000018" width="41" height="31.666666666666671"/>
<rect key="frame" x="337.33333333333331" y="5.9999999999999982" width="41" height="31.333333333333329"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" image="bookmark" catalog="system"/>
<connections>
Expand All @@ -49,6 +52,7 @@
<constraint firstItem="yif-eD-zTA" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="D2V-ZO-8DE" secondAttribute="leading" constant="20" symbolic="YES" id="p64-Fu-9aV"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" name="PrimaryBackgroundColor"/>
</tableViewCell>
</prototypes>
<connections>
Expand Down Expand Up @@ -151,7 +155,7 @@
<color key="backgroundColor" name="PrimaryBackgroundColor"/>
<color key="sectionIndexColor" name="TextColors"/>
<color key="sectionIndexBackgroundColor" name="PrimaryBackgroundColor"/>
<searchBar key="tableHeaderView" contentMode="redraw" id="u6J-Vx-bbb">
<searchBar key="tableHeaderView" contentMode="redraw" text="" id="u6J-Vx-bbb">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" name="PrimaryBackgroundColor"/>
Expand All @@ -160,14 +164,14 @@
</searchBar>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="CategoryCell" id="GWR-RC-CK0">
<rect key="frame" x="0.0" y="88.666666030883789" width="414" height="43.333332061767578"/>
<rect key="frame" x="0.0" y="88.666666030883789" width="414" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="GWR-RC-CK0" id="ctg-Xh-Rr2">
<rect key="frame" x="0.0" y="0.0" width="384.33333333333331" height="43.333332061767578"/>
<rect key="frame" x="0.0" y="0.0" width="384.33333333333331" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kmH-hp-50L" userLabel="Bookmark Category Button">
<rect key="frame" x="337.33333333333331" y="5.9999999999999982" width="41" height="31.333333333333329"/>
<rect key="frame" x="337.33333333333331" y="6" width="41" height="31"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" image="bookmark" catalog="system"/>
<connections>
Expand Down

0 comments on commit a5fa4fd

Please sign in to comment.