Force text color on UIDatePicker labels

This commit is contained in:
Ilya Laktyushin
2021-02-20 19:24:35 +04:00
parent 166d4add27
commit 9d3f6d34c0
11 changed files with 51 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import UIKit
import SwiftSignalKit
import Photos
import TelegramPresentationData
import UIKitRuntimeUtils
final class ChatDateSelectionSheet: ActionSheetController {
private let strings: PresentationStrings
@@ -83,6 +84,8 @@ private final class ChatDateSelectorItemNode: ActionSheetItemNode {
self.strings = strings
self.valueChanged = valueChanged
UILabel.setDateLabel(theme.primaryTextColor)
self.pickerView = UIDatePicker()
self.pickerView.datePickerMode = .countDownTimer
self.pickerView.datePickerMode = .date
@@ -96,6 +99,7 @@ private final class ChatDateSelectorItemNode: ActionSheetItemNode {
}
self.pickerView.setValue(theme.primaryTextColor, forKey: "textColor")
self.pickerView.setValue(theme.primaryTextColor, forKey: "highlightColor")
super.init(theme: theme)