diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 26a0df4a93..ab9a290fef 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -1561,6 +1561,8 @@ PRIVATE settings/settings_notifications.h settings/settings_notifications_type.cpp settings/settings_notifications_type.h + settings/settings_passkeys.cpp + settings/settings_passkeys.h settings/settings_power_saving.cpp settings/settings_power_saving.h settings/settings_premium.cpp diff --git a/Telegram/SourceFiles/settings/settings_passkeys.cpp b/Telegram/SourceFiles/settings/settings_passkeys.cpp new file mode 100644 index 0000000000..3fe0c507e3 --- /dev/null +++ b/Telegram/SourceFiles/settings/settings_passkeys.cpp @@ -0,0 +1,35 @@ +/* +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 +*/ +#include "settings/settings_passkeys.h" + +#include "ui/vertical_list.h" +#include "ui/wrap/vertical_layout.h" +#include "lang/lang_keys.h" +#include "styles/style_settings.h" + +namespace Settings { + +Passkeys::Passkeys( + QWidget *parent, + not_null controller) +: Section(parent) { + setupContent(controller); +} + +rpl::producer Passkeys::title() { + return tr::lng_settings_passkeys_title(); +} + +void Passkeys::setupContent( + not_null controller) { + const auto content = Ui::CreateChild(this); + + Ui::ResizeFitChild(this, content); +} + +} // namespace Settings diff --git a/Telegram/SourceFiles/settings/settings_passkeys.h b/Telegram/SourceFiles/settings/settings_passkeys.h new file mode 100644 index 0000000000..182e6b713b --- /dev/null +++ b/Telegram/SourceFiles/settings/settings_passkeys.h @@ -0,0 +1,27 @@ +/* +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 "settings/settings_common_session.h" + +namespace Settings { + +class Passkeys : public Section { +public: + Passkeys( + QWidget *parent, + not_null controller); + + [[nodiscard]] rpl::producer title() override; + +private: + void setupContent(not_null controller); + +}; + +} // namespace Settings