Set recording segment color to indicate tap action

This commit is contained in:
relikd
2020-09-12 10:27:04 +02:00
parent 280526bef4
commit 4dd2339ed8
2 changed files with 3 additions and 0 deletions

View File

@@ -128,6 +128,7 @@
<outlet property="buttonView" destination="La3-9e-6TK" id="UMg-xx-6OV"/>
<outlet property="headerView" destination="ppJ-js-Wwz" id="68u-8M-R2Q"/>
<outlet property="runningView" destination="9Yj-FX-eFd" id="L2C-YR-2HN"/>
<outlet property="startSegment" destination="2MI-6l-YQt" id="Jun-ct-Xag"/>
<outlet property="stopButton" destination="vAq-EZ-Gmx" id="XiW-1H-I9y"/>
<outlet property="timeLabel" destination="rbR-np-cXD" id="EEe-8F-HT6"/>
</connections>

View File

@@ -10,8 +10,10 @@ class VCRecordings: UIViewController, UINavigationControllerDelegate {
@IBOutlet private var runningView: UIView!
@IBOutlet private var timeLabel: UILabel!
@IBOutlet private var stopButton: UIButton!
@IBOutlet private var startSegment: UISegmentedControl!
override func viewDidLoad() {
startSegment.setTitleTextAttributes([NSAttributedString.Key.foregroundColor : UIColor.sysLink], for: .normal)
timeLabel.font = timeLabel.font.monoSpace()
if let ongoing = RecordingsDB.getCurrent() {
currentRecording = ongoing