mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-05 15:34:02 +02:00
66 lines
1.9 KiB
C++
66 lines
1.9 KiB
C++
// This is the source code of AyuGram for Desktop.
|
|
//
|
|
// We do not and cannot prevent the use of our code,
|
|
// but be respectful and credit the original author.
|
|
//
|
|
// Copyright @Radolyn, 2023
|
|
#pragma once
|
|
|
|
#include "base/options.h"
|
|
#include "settings/settings_common_session.h"
|
|
#include "settings/settings_common.h"
|
|
|
|
class BoxContent;
|
|
|
|
namespace Window
|
|
{
|
|
class Controller;
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Settings
|
|
{
|
|
|
|
class Ayu : public Section<Ayu>
|
|
{
|
|
public:
|
|
Ayu(QWidget *parent, not_null<Window::SessionController *> controller);
|
|
|
|
[[nodiscard]] rpl::producer<QString> title() override;
|
|
|
|
private:
|
|
void SetupGhostModeToggle(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupReadAfterActionToggle(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupGhostEssentials(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupSpyEssentials(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupQoLToggles(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupAppIcon(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupCustomization(not_null<Ui::VerticalLayout *> container,
|
|
not_null<Window::SessionController *> controller);
|
|
|
|
void SetupDrawerElements(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupTrayElements(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupShowPeerId(not_null<Ui::VerticalLayout *> container, not_null<Window::SessionController *> controller);
|
|
|
|
void SetupRecentStickersLimitSlider(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupFonts(not_null<Ui::VerticalLayout *> container, not_null<Window::SessionController *> controller);
|
|
|
|
void SetupAyuSync(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupSendConfirmations(not_null<Ui::VerticalLayout *> container);
|
|
|
|
void SetupAyuGramSettings(not_null<Ui::VerticalLayout *> container, not_null<Window::SessionController *> null);
|
|
|
|
void setupContent(not_null<Window::SessionController *> controller);
|
|
};
|
|
|
|
} // namespace Settings
|