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

@@ -8,6 +8,7 @@ import SyncCore
import TelegramPresentationData
import TelegramStringFormatting
import AccountContext
import UIKitRuntimeUtils
final class ThemeAutoNightTimeSelectionActionSheet: ActionSheetController {
private var presentationDisposable: Disposable?
@@ -98,6 +99,8 @@ private final class ThemeAutoNightTimeSelectionActionSheetItemNode: ActionSheetI
self.strings = strings
self.valueChanged = valueChanged
UILabel.setDateLabel(theme.primaryTextColor)
self.pickerView = UIDatePicker()
self.pickerView.datePickerMode = .countDownTimer
self.pickerView.datePickerMode = .time