/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "ui/layers/generic_box.h" namespace style { struct FlatLabel; struct InputField; struct CalendarColors; } // namespace style namespace Ui { class RoundButton; struct ChooseDateTimeBoxDescriptor { QPointer submit; Fn collect; rpl::producer values; }; struct ChooseDateTimeStyleArgs { ChooseDateTimeStyleArgs(); const style::FlatLabel *labelStyle; const style::InputField *dateFieldStyle; const style::InputField *timeFieldStyle; const style::FlatLabel *separatorStyle; const style::FlatLabel *atStyle; const style::CalendarColors *calendarStyle; }; struct ChooseDateTimeBoxArgs { rpl::producer title; rpl::producer submit; Fn done; Fn min; TimeId time = 0; Fn max; rpl::producer description; ChooseDateTimeStyleArgs style; }; ChooseDateTimeBoxDescriptor ChooseDateTimeBox( not_null box, ChooseDateTimeBoxArgs &&args); } // namespace Ui