mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Added ability to set emoji status for certain period of time.
This commit is contained in:
@@ -24,6 +24,27 @@ constexpr auto kMinYScale = 0.2;
|
||||
|
||||
} // namespace
|
||||
|
||||
std::vector<TimeId> DefaultTimePickerValues() {
|
||||
return {
|
||||
(60 * 15),
|
||||
(60 * 30),
|
||||
(3600 * 1),
|
||||
(3600 * 2),
|
||||
(3600 * 3),
|
||||
(3600 * 4),
|
||||
(3600 * 8),
|
||||
(3600 * 12),
|
||||
(86400 * 1),
|
||||
(86400 * 2),
|
||||
(86400 * 3),
|
||||
(86400 * 7 * 1),
|
||||
(86400 * 7 * 2),
|
||||
(86400 * 31 * 1),
|
||||
(86400 * 31 * 2),
|
||||
(86400 * 31 * 3),
|
||||
};
|
||||
}
|
||||
|
||||
Fn<TimeId()> TimePickerBox(
|
||||
not_null<GenericBox*> box,
|
||||
std::vector<TimeId> values,
|
||||
|
@@ -11,7 +11,9 @@ namespace Ui {
|
||||
|
||||
class GenericBox;
|
||||
|
||||
Fn<TimeId()> TimePickerBox(
|
||||
[[nodiscard]] std::vector<TimeId> DefaultTimePickerValues();
|
||||
|
||||
[[nodiscard]] Fn<TimeId()> TimePickerBox(
|
||||
not_null<GenericBox*> box,
|
||||
std::vector<TimeId> values,
|
||||
std::vector<QString> phrases,
|
||||
|
Reference in New Issue
Block a user