Various Improvements

This commit is contained in:
Ilya Laktyushin
2021-01-26 13:59:23 +03:00
parent 9790e94e16
commit 6875655747
19 changed files with 4171 additions and 4091 deletions

View File

@@ -13,6 +13,7 @@ import CallListUI
import ChatListUI
import SettingsUI
import AppBundle
import DatePickerNode
public final class TelegramRootController: NavigationController {
private let context: AccountContext
@@ -127,6 +128,14 @@ public final class TelegramRootController: NavigationController {
self.accountSettingsController = accountSettingsController
self.rootTabController = tabBarController
self.pushViewController(tabBarController, animated: false)
Queue.mainQueue().after(1.0) {
let datePicker = DatePickerNode(theme: DatePickerTheme(backgroundColor: .white, textColor: .black, secondaryTextColor: .gray, accentColor: .blue, disabledColor: .lightGray, selectionColor: .blue, selectedCurrentTextColor: .white, secondarySelectionColor: .cyan), strings: self.context.sharedContext.currentPresentationData.with { $0 }.strings)
let frame = CGRect(origin: CGPoint(x: 50.0, y: 100.0), size: CGSize(width: 300.0, height: 300.0))
datePicker.updateLayout(size: frame.size, transition: .immediate)
self.rootTabController?.displayNode.addSubnode(datePicker)
}
}
public func updateRootControllers(showCallsTab: Bool) {